3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test($b){ if(empty($b)){ var_dump($b); } } test(null); test();

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.0070.00718.42
8.3.50.0040.01216.46
8.3.40.0120.00618.76
8.3.30.0150.00418.53
8.3.20.0070.00020.04
8.3.10.0040.00423.63
8.3.00.0030.00519.69
8.2.180.0070.01418.09
8.2.170.0040.01122.96
8.2.160.0070.00719.08
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0040.00421.00
8.2.120.0050.00326.35
8.2.110.0030.00620.58
8.2.100.0120.00017.84
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0060.00317.80
8.2.50.0080.00018.10
8.2.40.0000.00720.45
8.2.30.0040.00420.97
8.2.20.0000.00817.86
8.2.10.0070.00017.89
8.2.00.0040.00418.08
8.1.280.0060.01325.92
8.1.270.0040.00424.01
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.08
8.1.230.0090.00318.87
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.10
8.1.190.0030.00617.22
8.1.180.0040.00418.10
8.1.170.0030.00518.39
8.1.160.0030.00318.94
8.1.150.0040.00420.49
8.1.140.0000.00719.41
8.1.130.0030.00318.75
8.1.120.0000.00817.32
8.1.110.0000.00817.26
8.1.100.0060.00317.26
8.1.90.0000.00717.29
8.1.80.0040.00417.21
8.1.70.0040.00417.19
8.1.60.0000.00717.52
8.1.50.0080.00017.29
8.1.40.0090.00317.46
8.1.30.0030.00617.59
8.1.20.0030.00617.52
8.1.10.0030.00617.43
8.1.00.0000.00717.44
8.0.300.0080.00019.97
8.0.290.0050.00316.63
8.0.280.0000.00718.29
8.0.270.0030.00317.18
8.0.260.0000.00616.67
8.0.250.0030.00316.90
8.0.240.0030.00316.86
8.0.230.0070.00016.86
8.0.220.0030.00316.92
8.0.210.0030.00316.90
8.0.200.0000.00716.83
8.0.190.0040.00416.99
8.0.180.0050.00316.93
8.0.170.0040.00416.86
8.0.160.0050.00216.80
8.0.150.0040.00416.78
8.0.140.0040.00416.79
8.0.130.0050.00013.27
8.0.120.0040.00416.73
8.0.110.0000.00816.83
8.0.100.0050.00316.82
8.0.90.0050.00316.90
8.0.80.0090.00616.80
8.0.70.0000.00716.82
8.0.60.0000.00716.77
8.0.50.0050.00216.92
8.0.30.0050.01316.96
8.0.20.0110.01017.40
8.0.10.0040.00416.82
8.0.00.0070.01016.54
7.4.330.0000.00515.55
7.4.320.0070.00016.37
7.4.300.0060.00016.42
7.4.290.0070.00616.56
7.4.280.0000.00916.27
7.4.270.0030.00316.43
7.4.260.0070.00016.41
7.4.250.0030.00316.50
7.4.240.0000.00716.57
7.4.230.0030.00316.63
7.4.220.0150.00316.54
7.4.210.0060.00916.55
7.4.200.0040.00416.53
7.4.160.0070.01016.59
7.4.150.0180.00617.40
7.4.140.0090.00817.86
7.4.130.0130.00616.52
7.4.120.0080.01116.46
7.4.110.0130.00316.48
7.4.100.0130.01316.45
7.4.90.0100.00716.37
7.4.80.0120.00619.39
7.4.70.0070.01016.30
7.4.60.0090.00616.46
7.4.50.0080.00816.16
7.4.40.0070.01116.17
7.4.30.0130.00316.34
7.4.00.0110.00715.06
7.3.330.0050.00013.08
7.3.320.0060.00013.27
7.3.310.0070.00016.32
7.3.300.0060.00016.16
7.3.290.0060.00716.25
7.3.280.0080.00816.26
7.3.270.0090.00917.40
7.3.260.0060.01016.43
7.3.250.0130.00616.41
7.3.240.0060.01016.22
7.3.230.0030.01316.29
7.3.210.0110.01116.42
7.3.200.0120.00916.60
7.3.190.0040.01216.32
7.3.180.0130.00316.66
7.3.170.0130.00316.27
7.3.160.0110.00516.54
7.2.330.0040.01816.61
7.2.320.0060.01016.75
7.2.310.0130.00316.56
7.2.300.0040.01116.32
7.2.290.0110.01116.64
7.2.60.0100.00316.77
7.2.00.0320.01118.76
7.1.200.0060.00615.41
7.1.100.0030.01018.10
7.1.70.0110.01017.00
7.1.60.0350.01135.07
7.1.50.0280.01934.69
7.1.40.0350.00834.41
7.1.30.0370.01934.41
7.1.20.0400.00434.50
7.1.10.0090.01216.41
7.1.00.0160.00616.60
7.0.200.0110.00916.91
7.0.190.0080.01216.75
7.0.180.0120.01216.25
7.0.170.0080.01716.28
7.0.160.0100.01216.27
7.0.150.0060.01416.16
7.0.140.0140.00816.21
7.0.130.0090.01216.49
7.0.120.0110.00616.50
7.0.110.0090.01216.04
7.0.100.0100.01016.15
7.0.90.0100.01216.20
7.0.80.0110.00916.38
7.0.70.0110.01116.42
7.0.60.0070.01316.00
7.0.50.0090.00816.18
7.0.40.0100.00716.31
7.0.30.0080.01216.34
7.0.20.0080.01116.23
7.0.10.0050.01216.29
7.0.00.0050.01216.25

preferences:
52.92 ms | 401 KiB | 5 Q