3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($limit=10,$str=str_repeat(" ",$limit);$limit>=0;--$limit){ $arr=explode(" ",$str,$limit); if(($count=count($arr)) > $limit){ throw new \LogicException("explode() returned more elements than the limit! someone send a bugreport! limit: {$limit} elements: {$count}"); } }

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.40.0070.01118.99
8.3.30.0120.00318.97
8.3.20.0040.00422.34
8.3.10.0040.00421.92
8.3.00.0080.00022.44
8.2.170.0120.00322.96
8.2.160.0100.00720.27
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0040.00717.75
8.2.100.0000.01118.03
8.2.90.0030.00517.75
8.2.80.0000.00918.92
8.2.70.0000.00817.63
8.2.60.0040.00417.50
8.2.50.0040.00417.75
8.2.40.0000.00719.47
8.2.30.0040.00419.26
8.2.20.0040.00417.98
8.2.10.0070.00019.34
8.2.00.0040.00419.30
8.1.270.0070.00022.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.76
8.1.230.0070.00420.90
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.52
8.1.160.0000.00718.81
8.1.150.0070.00018.93
8.1.140.0050.00320.95
8.1.130.0000.00720.15
8.1.120.0000.00717.35
8.1.110.0040.00417.42
8.1.100.0000.00817.42
8.1.90.0030.00517.46
8.1.80.0030.00617.47
8.1.70.0000.00817.46
8.1.60.0000.00717.54
8.1.50.0040.00417.52
8.1.40.0030.00617.45
8.1.30.0040.00417.67
8.1.20.0000.00917.54
8.1.10.0030.00617.46
8.1.00.0050.00317.52
8.0.300.0040.00418.81
8.0.290.0130.00616.58
8.0.280.0040.00418.44
8.0.270.0030.00317.32
8.0.260.0060.00020.19
8.0.250.0040.00417.03
8.0.240.0000.00717.00
8.0.230.0000.00717.00
8.0.220.0000.00716.85
8.0.210.0030.00316.93
8.0.200.0040.00417.04
8.0.190.0000.00816.99
8.0.180.0030.00616.96
8.0.170.0000.00916.96
8.0.160.0050.00216.86
8.0.150.0030.00316.86
8.0.140.0040.00416.90
8.0.130.0060.00013.41
8.0.120.0040.00416.81
8.0.110.0000.00716.93
8.0.100.0000.00816.98
8.0.90.0000.00716.89
8.0.80.0110.00416.95
8.0.70.0070.00016.92
8.0.60.0040.00416.83
8.0.50.0040.00416.96
8.0.30.0050.01317.02
8.0.20.0140.00816.84
8.0.10.0000.00816.89
8.0.00.0170.00716.48
7.4.330.0020.00216.89
7.4.320.0030.00316.66
7.4.300.0030.00316.61
7.4.290.0040.00416.63
7.4.280.0050.00516.54
7.4.270.0070.00016.45
7.4.260.0000.00613.23
7.4.250.0030.00316.57
7.4.240.0050.00216.56
7.4.230.0030.00316.48
7.4.220.0060.00116.55
7.4.210.0080.00816.54
7.4.200.0030.00316.48
7.4.130.0090.01216.55
7.4.120.0130.00516.69
7.4.110.0120.00416.44
7.4.100.0160.00616.62
7.4.90.0060.01016.46
7.4.80.0080.00819.39
7.4.70.0060.00916.48
7.4.60.0090.00616.68
7.4.50.0090.00516.41
7.4.40.0100.00616.82
7.4.00.0050.00915.08
7.3.330.0000.00816.27
7.3.320.0030.00313.20
7.3.310.0070.00016.46
7.3.300.0030.00316.40
7.3.290.0000.00816.34
7.3.280.0030.01316.38
7.3.260.0090.01116.41
7.3.240.0080.01116.45
7.3.230.0070.01016.51
7.3.210.0090.00916.35
7.3.200.0120.00616.57
7.3.190.0030.01316.39
7.3.180.0060.01216.48
7.3.170.0110.01116.62
7.3.160.0100.00616.34
7.3.120.0110.00614.69
7.3.110.0150.00414.88
7.3.100.0100.00614.94
7.3.90.0060.01214.99
7.3.80.0100.00614.63
7.3.70.0020.00914.92
7.3.60.0120.00514.92
7.3.50.0060.01114.83
7.3.40.0050.00714.72
7.3.30.0070.00914.92
7.3.20.0070.01115.75
7.3.10.0050.01115.73
7.3.00.0080.00615.65
7.2.330.0140.01016.59
7.2.320.0060.01116.55
7.2.310.0070.01416.57
7.2.300.0070.01516.59
7.2.290.0070.01016.61
7.2.250.0150.00315.26
7.2.240.0030.01615.04
7.2.230.0030.01614.84
7.2.220.0060.01215.01
7.2.210.0090.00614.83
7.2.200.0050.00814.94
7.2.190.0120.00315.11
7.2.180.0060.00915.00
7.2.170.0030.00815.03
7.2.160.0060.00914.98
7.2.150.0070.01415.08
7.2.140.0180.00415.29
7.2.130.0030.01415.07
7.2.120.0120.00914.89
7.2.110.0110.00915.13
7.2.100.0100.01014.77
7.2.90.0120.00315.18
7.2.80.0090.00915.21
7.2.70.0130.00715.04
7.2.60.0060.01315.04
7.2.50.0100.00915.18
7.2.40.0090.00615.20
7.2.30.0090.00914.95
7.2.20.0040.01115.12
7.2.10.0110.00414.92
7.2.00.0120.00315.14
7.1.330.0000.01515.81
7.1.320.0110.00614.98
7.1.310.0070.01114.91
7.1.300.0090.00914.70
7.1.290.0100.00514.86
7.1.280.0030.00814.84
7.1.270.0080.00914.93
7.1.260.0030.01314.91
7.1.250.0090.00913.86

preferences:
65.69 ms | 400 KiB | 5 Q