3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['test' => 'abc']; $int = 40; empty($int);

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.0040.01118.18
8.3.50.0100.00616.28
8.3.40.0070.00718.45
8.3.30.0040.01118.56
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.180.0110.00325.92
8.2.170.0090.01218.97
8.2.160.0110.00422.96
8.2.150.0000.00925.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00526.35
8.2.110.0060.00320.22
8.2.100.0030.00919.51
8.2.90.0000.00917.63
8.2.80.0050.00318.61
8.2.70.0040.00717.25
8.2.60.0000.00917.80
8.2.50.0000.00818.05
8.2.40.0060.00319.80
8.2.30.0000.00718.10
8.2.20.0040.00417.86
8.2.10.0000.00719.19
8.2.00.0070.00019.04
8.1.280.0100.01025.92
8.1.270.0030.00523.99
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0090.00023.89
8.1.230.0000.01120.98
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0080.00017.22
8.1.180.0060.00318.10
8.1.170.0040.00418.43
8.1.160.0000.00718.91
8.1.150.0000.00818.85
8.1.140.0000.00718.80
8.1.130.0030.00320.06
8.1.120.0000.00717.23
8.1.110.0030.00517.26
8.1.100.0040.00417.36
8.1.90.0040.00317.27
8.1.80.0040.00417.26
8.1.70.0070.00317.44
8.1.60.0060.00317.40
8.1.50.0000.00817.46
8.1.40.0000.01017.43
8.1.30.0060.00317.57
8.1.20.0060.00317.55
8.1.10.0040.00417.53
8.1.00.0030.00617.39
8.0.300.0040.00418.77
8.0.290.0030.00616.63
8.0.280.0000.00718.37
8.0.270.0030.00317.84
8.0.260.0060.00018.28
8.0.250.0040.00416.85
8.0.240.0000.00616.77
8.0.230.0030.00316.87
8.0.220.0000.00716.84
8.0.210.0000.00716.71
8.0.200.0030.00316.84
8.0.190.0040.00416.76
8.0.180.0070.00016.89
8.0.170.0040.00416.72
8.0.160.0040.00416.89
8.0.150.0070.00016.72
8.0.140.0030.00616.70
8.0.130.0060.00013.28
8.0.120.0090.00016.75
8.0.110.0040.00416.68
8.0.100.0040.00416.86
8.0.90.0070.00016.86
8.0.80.0110.00616.72
8.0.70.0040.00416.71
8.0.60.0070.00016.86
8.0.50.0000.00816.71
8.0.30.0090.01416.78
8.0.20.0130.00916.89
8.0.10.0120.01216.86
8.0.00.0090.01217.00
7.4.330.0020.00215.55
7.4.320.0060.00016.43
7.4.300.0060.00016.57
7.4.290.0030.00516.47
7.4.280.0050.00316.52
7.4.270.0040.00416.54
7.4.260.0050.00013.18
7.4.250.0040.00416.34
7.4.240.0000.00716.36
7.4.230.0040.00416.27
7.4.220.0030.00416.57
7.4.210.0090.00516.45
7.4.200.0000.00716.40
7.4.160.0180.00316.54
7.4.150.0080.00816.43
7.4.140.0000.02016.28
7.4.130.0120.00916.27
7.4.120.0090.01216.34
7.4.110.0070.01316.28
7.4.100.0090.01116.38
7.4.90.0040.01216.45
7.4.80.0040.01416.40
7.4.70.0120.00916.39
7.4.60.0070.01316.30
7.4.50.0070.01316.35
7.4.40.0120.00616.20
7.4.30.0030.01216.43
7.4.20.0070.01416.29
7.4.10.0090.01216.36
7.4.00.0140.00616.34
7.3.330.0070.00016.08
7.3.320.0000.00513.13
7.3.310.0000.00716.18
7.3.300.0050.00216.15
7.3.290.0100.01016.12
7.3.270.0090.00916.06
7.3.260.0120.00816.17
7.3.250.0060.01316.12
7.3.240.0160.00316.11
7.3.230.0060.01316.06
7.3.220.0100.01016.00
7.3.210.0130.00716.03
7.3.200.0060.00916.09
7.3.190.0150.00416.06
7.3.180.0090.00616.01
7.3.170.0120.00916.11
7.3.160.0060.01216.16
7.3.150.0140.00616.00
7.3.140.0040.01116.11
7.3.130.0100.00716.04
7.3.120.0090.00916.05
7.3.110.0160.00016.01
7.3.100.0090.00616.03
7.3.90.0030.01316.27
7.3.80.0130.00716.04
7.3.70.0110.00716.16
7.3.60.0030.01316.32
7.3.50.0030.01216.34
7.3.40.0100.00616.28
7.3.30.0090.00916.22
7.3.20.0120.00616.27
7.3.10.0110.00616.25
7.3.00.0110.00716.13

preferences:
54.7 ms | 400 KiB | 5 Q