3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { } var_dump(empty(foo()));

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.1.70.0030.00317.36
8.1.60.0040.00417.51
8.1.50.0030.00617.46
8.1.40.0000.00817.41
8.1.30.0040.00417.59
8.1.20.0040.00417.55
8.1.10.0040.00417.44
8.1.00.0050.00217.27
8.0.200.0040.00416.86
8.0.190.0050.00316.92
8.0.180.0000.00716.73
8.0.170.0040.00416.86
8.0.160.0040.00416.75
8.0.150.0070.00016.86
8.0.140.0070.00016.78
8.0.130.0030.00313.29
8.0.120.0080.00016.70
8.0.110.0060.00316.71
8.0.100.0070.00016.88
8.0.90.0040.00416.82
8.0.80.0120.00916.86
8.0.70.0070.00016.82
8.0.60.0030.00316.88
8.0.50.0050.00316.94
8.0.30.0100.01216.94
8.0.20.0100.00717.40
8.0.10.0040.00416.96
8.0.00.0050.01416.77
7.4.300.0000.00716.44
7.4.290.0070.00016.51
7.4.280.0000.00816.54
7.4.270.0070.00016.45
7.4.260.0030.00616.50
7.4.250.0000.00716.49
7.4.240.0050.00216.49
7.4.230.0000.00616.34
7.4.220.0110.00616.43
7.4.210.0100.00316.48
7.4.200.0040.00416.45
7.4.160.0100.01316.34
7.4.150.0140.00317.40
7.4.140.0160.01117.86
7.4.130.0100.00716.57
7.4.120.0090.00816.37
7.4.110.0080.00916.27
7.4.100.0160.00316.30
7.4.90.0130.01016.35
7.4.80.0150.00619.39
7.4.70.0150.00616.60
7.4.60.0060.00916.40
7.4.50.0050.00516.61
7.4.40.0070.01016.54
7.4.30.0050.01116.35
7.4.00.0070.00714.59
7.3.330.0000.00613.20
7.3.320.0030.00312.99
7.3.310.0070.00016.12
7.3.300.0030.00316.31
7.3.290.0070.00716.14
7.3.280.0140.00716.21
7.3.270.0100.01517.40
7.3.260.0140.00616.43
7.3.250.0140.00816.47
7.3.240.0110.00716.39
7.3.230.0090.00816.39
7.3.210.0090.00616.26
7.3.200.0030.01619.39
7.3.190.0090.01216.64
7.3.180.0080.00916.16
7.3.170.0100.00616.30
7.3.160.0090.00616.23
7.3.120.0100.00414.95
7.2.330.0150.00316.48
7.2.320.0170.00016.57
7.2.310.0030.01316.30
7.2.300.0040.01216.59
7.2.290.0120.00416.39
7.2.60.0080.00016.56
7.2.00.0000.01418.68
7.1.200.0030.01015.69
7.1.100.0030.01018.04
7.1.70.0000.00717.13
7.1.60.0070.01719.70
7.1.50.0120.00616.88
7.1.00.0100.06322.33
7.0.200.0070.00316.56
7.0.140.0030.06721.95
7.0.60.0100.07320.00
7.0.50.0070.08317.72
7.0.40.0070.07720.19
7.0.30.0200.03720.21
7.0.20.0230.05720.09
7.0.10.0300.05020.33
7.0.00.0030.06720.12
5.6.280.0100.06720.91
5.6.210.0030.05720.47
5.6.200.0030.08318.23
5.6.190.0070.08720.55
5.6.180.0300.06020.65
5.6.170.0200.04320.62
5.6.160.0000.04320.54
5.6.150.0130.04018.21
5.6.140.0070.04018.11
5.6.130.0070.03718.17
5.6.120.0030.04321.11
5.6.110.0030.05320.99
5.6.100.0070.07721.00
5.6.90.0100.08020.96
5.6.80.0100.04320.40
5.6.70.0170.04320.37
5.5.350.0170.08020.43
5.5.340.0070.06717.96
5.5.330.0070.08020.40
5.5.320.0200.04320.26
5.5.310.0370.07320.30
5.5.300.0030.05317.98
5.5.290.0000.08717.98
5.5.280.0070.05720.88
5.5.270.0070.08720.88
5.5.260.0100.05720.86
5.5.250.0130.06720.68
5.5.240.0130.04020.23
5.4.450.0870.05319.50
5.4.440.0570.06319.33
5.4.430.0900.05719.34
5.4.420.0670.00019.51
5.4.410.0070.08319.02
5.4.400.0130.06018.78
5.4.390.0200.08318.62
5.4.380.0200.05318.75
5.4.370.0070.06018.84
5.4.360.0070.04718.61
5.4.350.0090.03712.02
5.4.340.0050.04412.02
5.4.320.0090.04112.51
5.4.310.0070.04512.51
5.4.300.0090.03312.51
5.4.290.0060.03712.50
5.4.280.0060.03512.40
5.4.270.0040.03812.41
5.4.260.0030.04012.40
5.4.250.0070.03712.40
5.4.240.0080.03412.41
5.4.230.0080.03512.39
5.4.220.0040.03812.39
5.4.210.0040.03712.39
5.4.200.0030.04212.39
5.4.190.0050.03712.39
5.4.180.0070.03412.39
5.4.170.0060.03612.40
5.4.160.0050.03712.39
5.4.150.0070.03412.39
5.4.140.0090.04212.08
5.4.130.0070.03812.07
5.4.120.0060.03912.02
5.4.110.0090.03212.02
5.4.100.0060.03512.02
5.4.90.0050.03712.02
5.4.80.0060.03612.02
5.4.70.0050.03412.02
5.4.60.0050.03512.01
5.4.50.0030.03912.01
5.4.40.0040.03612.00
5.4.30.0040.03712.00
5.4.20.0080.03212.00
5.4.10.0040.03612.00
5.4.00.0050.03611.50
5.3.290.0100.04412.80
5.3.280.0060.03712.70
5.3.270.0040.04112.73
5.3.260.0080.03712.72
5.3.250.0050.03912.72
5.3.240.0030.03912.72
5.3.230.0060.03812.71
5.3.220.0040.03912.68
5.3.210.0080.03712.68
5.3.200.0070.03512.68
5.3.190.0030.04012.68
5.3.180.0080.03412.68
5.3.170.0030.04112.67
5.3.160.0080.03412.67
5.3.150.0080.03512.67
5.3.140.0080.03412.66
5.3.130.0060.03812.66
5.3.120.0040.04212.66
5.3.110.0070.03812.66
5.3.100.0090.03412.12
5.3.90.0050.03812.10
5.3.80.0060.04412.08
5.3.70.0030.03912.08
5.3.60.0060.03712.08
5.3.50.0060.03612.02
5.3.40.0060.03612.02
5.3.30.0060.03411.98
5.3.20.0090.03211.76
5.3.10.0060.03611.73
5.3.00.0100.04211.71
5.2.170.0060.0289.21
5.2.160.0060.0289.21
5.2.150.0030.0329.22
5.2.140.0050.0299.21
5.2.130.0030.0309.17
5.2.120.0070.0269.17
5.2.110.0050.0289.18
5.2.100.0050.0289.18
5.2.90.0020.0319.18
5.2.80.0050.0309.17
5.2.70.0040.0319.17
5.2.60.0080.0269.12
5.2.50.0060.0289.09
5.2.40.0070.0269.06
5.2.30.0040.0309.04
5.2.20.0040.0309.04
5.2.10.0030.0298.94
5.2.00.0060.0278.80
5.1.60.0040.0248.08
5.1.50.0050.0238.08
5.1.40.0060.0228.07
5.1.30.0040.0278.41
5.1.20.0030.0318.43
5.1.10.0050.0258.16
5.1.00.0080.0278.16
5.0.50.0030.0246.64
5.0.40.0050.0176.49
5.0.30.0040.0296.30
5.0.20.0050.0186.28
5.0.10.0030.0206.25
5.0.00.0040.0306.25
4.4.90.0050.0134.78
4.4.80.0050.0134.75
4.4.70.0050.0134.75
4.4.60.0060.0134.75
4.4.50.0020.0164.77
4.4.40.0020.0254.71
4.4.30.0040.0144.76
4.4.20.0020.0164.84
4.4.10.0030.0194.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0164.66
4.3.90.0040.0134.63
4.3.80.0000.0274.59
4.3.70.0040.0134.63
4.3.60.0040.0134.63
4.3.50.0040.0144.62
4.3.40.0020.0254.54
4.3.30.0010.0163.30
4.3.20.0020.0163.29
4.3.10.0010.0163.23
4.3.00.0130.0206.65

preferences:
13.02 ms | 406 KiB | 5 Q