3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lot_num = strtoupper('e1,1,2,3,4,5,7,8,9,10,11,12,13,14,15,16,17,18,e18'); echo 'END UNIT: '.substr_count($lot_num, 'E'); Echo '\ntotal count: '. count(explode(",", $lot_num)); Echo '\nother count: '. count(explode(",", $lot_num))-intval(substr_count($lot_num, 'E'));

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.0100.01016.63
8.3.50.0070.00716.47
8.3.40.0110.00418.67
8.3.30.0080.00518.59
8.3.20.0050.00221.77
8.3.10.0070.00023.71
8.3.00.0080.00017.68
8.2.180.0110.01117.99
8.2.170.0070.00722.96
8.2.160.0100.00321.06
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0070.00020.50
8.2.120.0080.00026.35
8.2.110.0060.00322.13
8.2.100.0040.00817.78
8.2.90.0000.00918.34
8.2.80.0080.00018.22
8.2.70.0050.00317.63
8.2.60.0020.00517.50
8.2.50.0080.00018.10
8.2.40.0040.00420.61
8.2.30.0040.00419.27
8.2.20.0000.00717.96
8.2.10.0000.00818.09
8.2.00.0070.00018.05
8.1.280.0070.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00621.02
8.1.230.0060.00622.67
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0050.00517.23
8.1.180.0000.00818.10
8.1.170.0060.00318.71
8.1.160.0000.00718.87
8.1.150.0020.00520.00
8.1.140.0050.00219.58
8.1.130.0000.00718.93
8.1.120.0040.00417.41
8.1.110.0070.00017.47
8.1.100.0030.00617.50
8.1.90.0080.00017.41
8.1.80.0070.00017.46
8.1.70.0000.00817.34
8.1.60.0080.00017.55
8.1.50.0030.00617.54
8.1.40.0030.00517.36
8.1.30.0000.00817.47
8.1.20.0000.00717.61
8.1.10.0040.00417.45
8.1.00.0000.00817.38
8.0.300.0000.00719.98
8.0.290.0030.00516.63
8.0.280.0000.00718.47
8.0.270.0000.00717.19
8.0.260.0040.00416.73
8.0.250.0040.00416.84
8.0.240.0000.00816.87
8.0.230.0060.00316.87
8.0.220.0070.00016.93
8.0.210.0070.00016.86
8.0.200.0060.00016.91
8.0.190.0000.00816.93
8.0.180.0040.00416.91
8.0.170.0040.00416.80
8.0.160.0030.00516.89
8.0.150.0040.00416.73
8.0.140.0040.00416.73
8.0.130.0060.00013.24
8.0.120.0040.00416.80
8.0.110.0080.00016.94
8.0.100.0040.00416.83
8.0.90.0030.00316.82
8.0.80.0030.01316.79
8.0.70.0040.00416.91
8.0.60.0000.00816.76
8.0.50.0040.00416.73
8.0.30.0080.01116.98
8.0.20.0130.00617.40
8.0.10.0040.00417.08
8.0.00.0160.00916.84
7.4.330.0060.00015.55
7.4.320.0050.00216.48
7.4.300.0030.00316.55
7.4.290.0050.00316.50
7.4.280.0030.00516.57
7.4.270.0030.00316.44
7.4.260.0030.00313.20
7.4.250.0040.00416.49
7.4.240.0030.00316.48
7.4.230.0070.00016.30
7.4.220.0110.00716.48
7.4.210.0110.00416.39
7.4.200.0000.00716.41
7.4.160.0030.01316.44
7.4.150.0070.01417.40
7.4.140.0060.01317.86
7.4.130.0150.01116.63
7.4.120.0110.01016.58
7.4.110.0130.00316.49
7.4.100.0090.01216.76
7.4.90.0100.00716.70
7.4.80.0110.00519.39
7.4.70.0100.00616.43
7.4.60.0110.00616.68
7.4.50.0080.00616.40
7.4.40.0130.01016.59
7.4.30.0100.00716.60
7.4.00.0030.01315.12
7.3.330.0000.00513.09
7.3.320.0050.00013.24
7.3.310.0040.00416.12
7.3.300.0030.00316.29
7.3.290.0090.00516.24
7.3.280.0090.00816.25
7.3.270.0070.01017.40
7.3.260.0150.00816.31
7.3.250.0110.00916.35
7.3.240.0060.01516.37
7.3.230.0110.00616.32
7.3.210.0120.00416.41
7.3.200.0050.01116.21
7.3.190.0090.00616.14
7.3.180.0030.01316.54
7.3.170.0130.00316.33
7.3.160.0100.01016.40
7.3.120.0160.00014.54
7.3.110.0090.00614.93
7.3.100.0030.01014.68
7.3.90.0030.01014.68
7.3.80.0090.00014.64
7.3.70.0080.00814.74
7.3.60.0070.00314.76
7.3.50.0070.00714.63
7.3.40.0070.00314.73
7.3.30.0000.01114.78
7.3.20.0040.01216.50
7.3.10.0090.00316.62
7.3.00.0050.00716.63
7.2.330.0100.00716.81
7.2.320.0070.02016.66
7.2.310.0130.00316.57
7.2.300.0040.01416.79
7.2.290.0060.01616.58
7.2.240.0070.01015.21
7.2.230.0080.00814.73
7.2.220.0040.00414.93
7.2.210.0060.00615.09
7.2.200.0060.00315.05
7.2.190.0040.00414.88
7.2.180.0070.00715.19
7.2.170.0030.00715.08
7.2.160.0030.00914.94
7.2.150.0130.00316.93
7.2.140.0000.01216.77
7.2.130.0050.01016.88
7.2.120.0080.00816.93
7.2.110.0050.00816.65
7.2.100.0070.00816.74
7.2.90.0070.00716.84
7.2.80.0040.00916.89
7.2.70.0050.00816.85
7.2.60.0050.00716.83
7.2.50.0070.00616.70
7.2.40.0080.00816.78
7.2.30.0030.01117.03
7.2.20.0080.00816.71
7.2.10.0050.00516.77
7.2.00.0050.00917.58
7.1.330.0110.00315.60
7.1.320.0030.01015.88
7.1.310.0070.00715.55
7.1.300.0000.01715.67
7.1.290.0060.00615.68
7.1.280.0040.00415.55
7.1.270.0000.01415.67
7.1.260.0000.00915.77
7.1.250.0060.00815.64
7.1.200.0000.01315.84
7.1.70.0050.00217.08
7.1.60.0600.01033.30
7.1.50.0630.01033.02
7.1.40.0930.01732.39
7.1.30.0700.01332.69
7.1.20.0800.01332.60
7.1.10.0570.01714.63
7.1.00.0500.00714.69
7.0.200.0500.00714.80
7.0.190.0570.00714.94
7.0.180.0430.01314.47
7.0.170.0570.01014.30
7.0.160.0730.01714.23
7.0.150.0770.01014.47
7.0.140.0430.01314.33
7.0.130.1000.00714.55
7.0.120.1330.02014.67
7.0.110.0630.01314.54
7.0.100.0600.01014.32
7.0.90.0630.00714.15
7.0.80.0470.01014.50
7.0.70.0770.01014.13
7.0.60.0630.00313.99
7.0.50.0430.01314.43
7.0.40.0530.00714.50
7.0.30.0770.00314.64
7.0.20.0430.00714.76
7.0.10.0470.01314.67
7.0.00.0430.01014.76

preferences:
53.13 ms | 400 KiB | 5 Q