3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'This is a test'; [$word, $string] = explode(' ', $string, 2); var_dump($word, $string);

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.5.20.0100.00919.92
8.5.10.0110.00719.52
8.5.00.0140.00819.93
8.4.170.0170.01220.49
8.4.160.0110.01120.62
8.4.150.0020.00014.05
8.4.140.0180.00717.40
8.4.130.0110.00617.69
8.4.120.0160.00520.37
8.4.110.0140.00622.37
8.4.100.0090.01217.68
8.4.90.0170.00418.45
8.4.80.0090.00217.65
8.4.70.0130.00717.89
8.4.60.0080.01118.74
8.4.50.0070.00917.46
8.4.40.0110.00420.61
8.4.30.0090.00623.92
8.4.20.0090.00919.52
8.4.10.0040.00422.19
8.3.300.0100.01019.12
8.3.290.0110.00820.73
8.3.280.0090.01118.13
8.3.270.0090.01316.69
8.3.260.0120.00616.61
8.3.250.0130.00518.73
8.3.240.0080.01116.44
8.3.230.0140.00616.51
8.3.220.0090.00617.09
8.3.210.0060.00816.68
8.3.200.0090.00716.55
8.3.190.0090.01018.62
8.3.180.0120.00718.28
8.3.170.0030.01018.66
8.3.160.0030.00716.64
8.3.150.0130.00616.98
8.3.140.0030.01316.50
8.3.130.0030.00618.32
8.3.120.0030.00620.59
8.3.110.0060.00320.94
8.3.100.0070.00718.30
8.3.90.0080.00026.77
8.3.80.0030.00618.43
8.3.70.0110.01118.43
8.3.60.0070.00716.38
8.3.50.0150.00016.33
8.3.40.0090.00621.72
8.3.30.0080.00818.64
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.300.0090.01120.33
8.2.290.0090.01020.36
8.2.280.0080.01118.15
8.2.270.0120.00617.45
8.2.260.0040.00419.06
8.2.250.0030.00616.92
8.2.240.0000.00918.92
8.2.230.0030.00622.58
8.2.220.0160.00624.06
8.2.210.0070.00726.77
8.2.200.0090.00018.16
8.2.190.0080.00816.58
8.2.180.0030.01416.38
8.2.170.0090.00918.91
8.2.160.0100.00322.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0050.00319.36
8.2.110.0040.00720.50
8.2.100.0120.00017.63
8.2.90.0040.00419.25
8.2.80.0060.00317.97
8.2.70.0110.00348.48
8.2.60.0090.00548.68
8.2.50.0120.00248.48
8.2.40.0120.00648.41
8.2.30.0130.00448.29
8.2.20.0130.00448.35
8.2.10.0070.01048.33
8.2.00.0090.00948.41
8.1.340.0080.01120.23
8.1.330.0110.00723.69
8.1.320.0130.00115.78
8.1.310.0090.00916.44
8.1.300.0060.00320.34
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0080.00023.97
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00319.14
8.1.230.0060.00617.83
8.1.220.0030.00617.79
8.1.210.0030.00718.77
8.1.200.0050.00848.28
8.1.190.0110.00548.10
8.1.180.0140.00348.10
8.1.170.0100.00748.10
8.1.160.0120.00448.22
8.1.150.0140.00448.16
8.1.140.0130.00348.16
8.1.130.0120.00648.16
8.1.120.0160.00148.16
8.1.110.0100.00848.10
8.1.100.0140.00348.23
8.1.90.0120.00648.29
8.1.80.0130.00448.16
8.1.70.0150.00248.10
8.1.60.0100.00748.29
8.1.50.0120.00648.23
8.1.40.0100.00748.29
8.1.30.0120.00748.04
8.1.20.0120.00648.23
8.1.10.0110.00748.29
8.1.00.0150.00448.10
8.0.300.0050.00518.77
8.0.290.0090.00548.04
8.0.280.0110.00747.92
8.0.270.0120.00547.92
8.0.260.0120.00547.92
8.0.250.0090.00847.92
8.0.240.0130.00447.92
8.0.230.0130.00547.92
8.0.220.0130.00447.92
8.0.210.0120.00547.92
8.0.200.0110.00647.92
8.0.190.0090.00847.92
8.0.180.0100.00847.92
8.0.170.0150.00347.92
8.0.160.0120.00747.92
8.0.150.0140.00347.92
8.0.140.0130.00547.92
8.0.130.0160.00247.92
8.0.120.0140.00447.92
8.0.110.0130.00447.92
8.0.100.0110.00547.92
8.0.90.0130.00447.92
8.0.80.0140.00347.92
8.0.70.0100.00847.92
8.0.60.0160.00147.92
8.0.50.0140.00247.92
8.0.30.0100.00747.92
8.0.20.0090.00647.92
8.0.10.0120.00447.92

preferences:
38.51 ms | 403 KiB | 5 Q