3v4l.org

run code in 300+ PHP versions simultaneously
<?php // getting the serial number list($serial) = sscanf("SN/2350001", "SN/%d"); // and the date of manufacturing $mandate = "January 01 2000"; list($month, $day, $year) = sscanf($mandate, "%s %d %d"); echo "Item $serial was manufactured on: $year-" . substr($month, 0, 3) . "-$day\n"; ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00018.43
8.3.50.0090.00922.81
8.3.40.0110.00418.93
8.3.30.0070.00719.00
8.3.20.0000.00720.04
8.3.10.0030.00520.65
8.3.00.0040.00420.89
8.2.180.0120.00618.16
8.2.170.0150.00022.96
8.2.160.0140.00020.35
8.2.150.0090.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.38
8.2.110.0090.00019.31
8.2.100.0090.00317.91
8.2.90.0050.00319.34
8.2.80.0000.00817.97
8.2.70.0080.00317.63
8.2.60.0040.00418.16
8.2.50.0140.00018.07
8.2.40.0030.00519.97
8.2.30.0040.00421.34
8.2.20.0040.00417.77
8.2.10.0060.00318.01
8.2.00.0020.00517.77
8.1.280.0110.00625.92
8.1.270.0030.00523.97
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00321.19
8.1.230.0060.00617.45
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0030.00517.00
8.1.180.0060.00318.10
8.1.170.0060.00318.55
8.1.160.0040.00418.89
8.1.150.0000.00818.88
8.1.140.0040.00417.47
8.1.130.0030.00317.86
8.1.120.0040.00417.38
8.1.110.0000.00717.53
8.1.100.0030.00317.53
8.1.90.0040.00417.50
8.1.80.0030.00517.39
8.1.70.0070.00017.45
8.1.60.0050.00317.59
8.1.50.0000.00817.52
8.1.40.0000.00817.41
8.1.30.0040.00417.59
8.1.20.0070.00317.58
8.1.10.0070.00017.49
8.1.00.0080.00017.50
8.0.300.0030.00618.77
8.0.290.0050.00316.63
8.0.280.0000.00718.50
8.0.270.0000.00817.23
8.0.260.0030.00317.27
8.0.250.0000.00716.95
8.0.240.0040.00417.00
8.0.230.0030.00316.96
8.0.220.0070.00316.82
8.0.210.0060.00316.91
8.0.200.0040.00416.99
8.0.190.0080.00017.03
8.0.180.0040.00416.98
8.0.170.0050.00216.94
8.0.160.0050.00216.82
8.0.150.0040.00416.88
8.0.140.0000.00816.75
8.0.130.0000.00513.33
8.0.120.0040.00416.78
8.0.110.0000.00816.86
8.0.100.0000.00716.78
8.0.90.0030.00516.72
8.0.80.0070.01116.95
8.0.70.0070.00016.75
8.0.60.0000.00716.80
8.0.50.0050.00216.76
8.0.30.0070.01516.96
8.0.20.0130.00517.40
8.0.10.0000.00717.00
8.0.00.0120.00616.82
7.4.330.0030.00315.23
7.4.320.0060.00016.52
7.4.300.0060.00016.62
7.4.290.0000.00816.66
7.4.280.0070.00316.52
7.4.270.0000.00816.54
7.4.260.0000.00716.40
7.4.250.0040.00416.54
7.4.240.0030.00516.54
7.4.230.0030.00316.38
7.4.220.0100.01316.55
7.4.210.0140.00316.50
7.4.200.0000.00716.53
7.4.160.0170.00316.45
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0120.00816.50
7.4.120.0100.00816.39
7.4.110.0120.00616.71
7.4.100.0070.02116.58
7.4.90.0030.01416.45
7.4.80.0090.00919.39
7.4.70.0000.02116.59
7.4.60.0120.00316.57
7.4.50.0040.00416.36
7.4.40.0100.00616.73
7.4.30.0070.01016.46
7.4.00.0090.00614.85
7.3.330.0000.00613.11
7.3.320.0030.00313.07
7.3.310.0000.00816.18
7.3.300.0060.00016.27
7.3.290.0100.00616.25
7.3.280.0050.01216.30
7.3.270.0150.00317.40
7.3.260.0030.01316.66
7.3.250.0070.01316.54
7.3.240.0100.00716.52
7.3.230.0130.01016.61
7.3.210.0070.01016.65
7.3.200.0150.00619.39
7.3.190.0120.00916.29
7.3.180.0060.00916.32
7.3.170.0070.01416.37
7.3.160.0060.00916.66
7.3.50.0080.00614.77
7.3.40.0070.00714.84
7.3.30.0080.00414.53
7.3.20.0130.00714.45
7.3.10.0110.00314.89
7.3.00.0080.00614.76
7.2.330.0110.00916.38
7.2.320.0040.01416.29
7.2.310.0130.00716.68
7.2.300.0070.01016.68
7.2.290.0090.00916.56
7.2.180.0070.00714.95
7.2.170.0130.01015.07
7.2.160.0070.00414.89
7.2.150.0160.01014.94
7.2.140.0800.01015.09
7.2.130.0140.00315.13
7.2.120.0170.00714.91
7.2.110.0170.00714.82
7.2.100.0140.00415.02
7.2.90.0030.01315.08
7.2.80.0070.00714.88
7.2.70.0210.00315.06
7.2.60.0100.01014.96
7.2.50.0030.01415.00
7.2.40.0150.01014.59
7.2.30.0140.00614.99
7.2.20.0360.00314.89
7.2.10.0250.00414.93
7.2.00.0110.00817.26
7.1.280.0150.00314.13
7.1.270.0130.01013.84
7.1.260.0200.00913.75
7.1.250.0130.00013.85
7.1.240.0200.00613.96
7.1.230.0190.01013.83
7.1.220.0210.00813.79
7.1.210.0210.00713.72
7.1.200.0110.01514.05
7.1.190.0110.01414.03
7.1.180.0300.00413.98
7.1.170.0310.00313.88
7.1.160.0130.01313.86
7.1.150.0240.00013.70
7.1.140.0110.01114.06
7.1.130.0160.01014.16
7.1.120.0130.01413.88
7.1.110.0190.00614.12
7.1.100.0160.00716.07
7.1.90.0270.00013.88
7.1.80.0180.01513.94
7.1.70.0060.01015.60
7.1.60.0160.01316.67
7.1.50.0180.01015.31
7.1.40.0220.00014.04
7.1.30.0140.00713.87
7.1.20.0210.01114.02
7.1.10.0150.00613.87
7.1.00.0420.04318.27
7.0.330.0110.00813.63
7.0.320.0140.00913.69
7.0.310.0250.01013.50
7.0.300.0120.01413.27
7.0.290.0220.00013.58
7.0.280.0110.01413.36
7.0.270.0230.01013.46
7.0.260.0250.00013.43
7.0.250.0170.01013.48
7.0.240.0260.00413.39
7.0.230.0180.00613.52
7.0.220.0110.00813.51
7.0.210.0140.00613.51
7.0.200.0130.00715.15
7.0.190.0180.01813.49
7.0.180.0190.00513.58
7.0.170.0160.00313.21
7.0.160.0150.01113.34
7.0.150.0240.01113.35
7.0.140.0100.03517.66
7.0.130.0210.00313.41
7.0.120.0210.00613.48
7.0.110.0130.01013.62
7.0.100.0100.01013.49
7.0.90.0210.00913.72
7.0.80.0220.01013.47
7.0.70.0240.00613.32
7.0.60.0100.04516.64
7.0.50.0110.04315.63
7.0.40.0120.04217.00
7.0.30.0170.02816.85
7.0.20.0140.02516.89
7.0.10.0130.03116.88
7.0.00.0180.04016.82
5.6.400.0170.00314.45
5.6.390.0130.00714.43
5.6.380.0130.01214.49
5.6.370.0100.02714.34
5.6.360.0170.00314.29
5.6.350.0200.00714.41
5.6.340.0120.01214.38
5.6.330.0160.01314.34
5.6.320.0120.00814.55
5.6.310.0210.00914.59
5.6.300.0170.00814.36
5.6.290.0060.01214.33
5.6.280.0120.03517.82
5.6.270.0120.00714.23
5.6.260.0140.00914.45
5.6.250.0070.01514.43
5.6.240.0000.01714.57
5.6.230.0130.01114.54
5.6.220.0050.01414.26
5.6.210.0100.03017.66
5.6.200.0060.03616.26
5.6.190.0030.03017.42
5.6.180.1830.03017.41
5.6.170.0220.02017.41
5.6.160.0070.03317.44
5.6.150.0120.04716.21
5.6.140.0140.03816.21
5.6.130.0100.04216.18
5.6.120.0100.03117.78
5.6.110.0120.03517.56
5.6.100.0160.04117.58
5.6.90.0140.04117.54
5.6.80.0120.03817.46
5.6.70.2270.02417.35
5.6.60.0100.01014.05
5.6.50.0100.00614.14
5.6.40.0110.00614.21
5.6.30.0090.00914.13
5.6.20.0110.00414.29
5.6.10.0100.00514.30
5.6.00.0100.00614.45
5.5.380.0100.01414.53
5.5.370.0110.01114.14
5.5.360.0090.01414.17
5.5.350.0080.03317.33
5.5.340.0110.03216.08
5.5.330.0090.04117.24
5.5.320.0220.04117.46
5.5.310.0240.04017.31
5.5.300.0130.04415.98
5.5.290.0080.04616.19
5.5.280.0160.03017.52
5.5.270.0140.03017.55
5.5.260.0170.03817.46
5.5.250.0140.04117.25
5.5.240.0170.01717.18
5.5.230.0110.00714.31
5.5.220.0090.01214.00
5.5.210.0130.00614.02
5.5.200.0140.00814.11
5.5.190.0140.00814.44
5.5.180.0130.00714.48
5.5.170.0130.00614.38
5.5.160.0120.00614.40
5.5.150.0060.00914.02
5.5.140.0050.01113.95
5.5.130.0030.01114.03
5.5.120.0090.01113.76
5.5.110.0140.00714.32
5.5.100.0130.01814.16
5.5.90.0140.01214.11
5.5.80.0190.00013.95
5.5.70.0100.01314.07
5.5.60.0080.00814.38
5.5.50.0130.01013.84
5.5.40.0160.00014.17
5.5.30.0100.00714.36
5.5.20.0180.00013.88
5.5.10.0190.00314.00
5.5.00.0140.00314.26
5.4.450.0160.02216.23
5.4.440.0380.02616.17
5.4.430.0370.02316.21
5.4.420.0100.03116.23
5.4.410.0050.03516.19
5.4.400.0030.03516.17
5.4.390.0170.02216.14
5.4.380.0130.02816.13
5.4.370.0100.03316.17
5.4.360.0070.03216.11
5.4.350.0090.02112.59
5.4.340.0110.02112.59
5.4.330.0100.00513.21
5.4.320.0100.02112.83
5.4.310.0110.02712.83
5.4.300.0060.02412.83
5.4.290.0130.02512.83
5.4.280.0060.02012.78
5.4.270.0060.03212.78
5.4.260.0080.02712.78
5.4.250.0120.02412.78
5.4.240.0060.02212.78
5.4.230.0080.02312.78
5.4.220.0060.02312.78
5.4.210.0080.02212.78
5.4.200.0070.02512.78
5.4.190.0090.02012.78
5.4.180.0080.02512.78
5.4.170.0100.02612.78
5.4.160.0060.02312.78
5.4.150.0090.01912.78
5.4.140.0040.02312.62
5.4.130.0080.02112.61
5.4.120.0060.02012.59
5.4.110.0070.02312.59
5.4.100.0100.01812.59
5.4.90.0090.02412.59
5.4.80.0090.02412.59
5.4.70.0080.02112.59
5.4.60.0090.02112.59
5.4.50.0070.02012.59
5.4.40.0080.01812.58
5.4.30.0080.02112.58
5.4.20.0040.02312.58
5.4.10.0050.02312.58
5.4.00.0080.02712.32

preferences:
53.67 ms | 401 KiB | 5 Q