3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = function (integer $bar = null ) { var_dump($bar); }; $foo(); $foo(null); $foo(100); $foo('100'); $foo([100]);

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.0090.00916.73
8.3.50.0140.00521.92
8.3.40.0100.01018.92
8.3.30.0140.00018.68
8.3.20.0040.00420.33
8.3.10.0000.00723.62
8.3.00.0040.00419.38
8.2.180.0120.00318.25
8.2.170.0140.00022.96
8.2.160.0090.00420.40
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0090.00017.63
8.2.110.0030.00722.26
8.2.100.0080.00418.04
8.2.90.0050.00319.05
8.2.80.0050.00317.97
8.2.70.0000.00817.63
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0060.00319.39
8.2.30.0000.00720.62
8.2.20.0030.00517.62
8.2.10.0040.00418.11
8.2.00.0070.00017.92
8.1.280.0070.00725.92
8.1.270.0050.00323.82
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00022.55
8.1.230.0000.01219.27
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0080.00018.63
8.1.160.0040.00421.96
8.1.150.0040.00418.89
8.1.140.0070.00017.40
8.1.130.0030.00317.65
8.1.120.0040.00417.47
8.1.110.0040.00417.34
8.1.100.0080.00017.38
8.1.90.0040.00417.46
8.1.80.0030.00717.51
8.1.70.0000.00717.48
8.1.60.0040.00417.49
8.1.50.0050.00317.55
8.1.40.0030.00617.49
8.1.30.0040.00417.54
8.1.20.0060.00317.56
8.1.10.0070.00017.59
8.1.00.0040.00417.48
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0030.00318.34
8.0.270.0070.00016.68
8.0.260.0000.00617.17
8.0.250.0000.00717.00
8.0.240.0000.00916.96
8.0.230.0000.00716.94
8.0.220.0030.00316.92
8.0.210.0000.00716.91
8.0.200.0070.00016.96
8.0.190.0000.00716.91
8.0.180.0040.00416.94
8.0.170.0000.00816.95
8.0.160.0050.00316.96
8.0.150.0000.00716.93
8.0.140.0040.00416.90
8.0.130.0030.00313.31
8.0.120.0060.00316.91
8.0.110.0040.00416.96
8.0.100.0030.00516.82
8.0.90.0040.00416.75
8.0.80.0060.00916.88
8.0.70.0000.00716.86
8.0.60.0000.00716.99
8.0.50.0040.00416.89
8.0.30.0110.00716.99
8.0.20.0090.01017.40
8.0.10.0000.00717.09
8.0.00.0070.01016.70
7.4.330.0050.00015.16
7.4.320.0070.00016.52
7.4.300.0060.00016.47
7.4.290.0070.00016.47
7.4.280.0000.00816.55
7.4.270.0040.00416.52
7.4.260.0030.00516.62
7.4.250.0030.00516.45
7.4.240.0020.00516.50
7.4.230.0070.00016.58
7.4.220.0110.00716.68
7.4.210.0110.00816.52
7.4.200.0070.00016.65
7.4.160.0060.00916.44
7.4.150.0120.01217.40
7.4.140.0100.00717.86
7.4.130.0080.00816.55
7.4.120.0130.00516.58
7.4.110.0130.00316.49
7.4.100.0230.00016.46
7.4.90.0120.00616.51
7.4.80.0090.01319.39
7.4.70.0030.01216.61
7.4.60.0110.00616.55
7.4.50.0030.00516.30
7.4.40.0090.01216.72
7.4.30.0090.01216.59
7.4.00.0100.00314.76
7.3.330.0000.00513.15
7.3.320.0030.00313.26
7.3.310.0000.00816.34
7.3.300.0030.00316.24
7.3.290.0030.00316.31
7.3.280.0070.00916.30
7.3.270.0090.00917.40
7.3.260.0100.00716.25
7.3.250.0120.00516.44
7.3.240.0090.00716.41
7.3.230.0130.00316.39
7.3.210.0110.00616.53
7.3.200.0100.00616.43
7.3.190.0030.01216.48
7.3.180.0170.00016.35
7.3.170.0050.01616.43
7.3.160.0090.00916.45
7.2.330.0040.01216.58
7.2.320.0060.01216.68
7.2.310.0070.01016.66
7.2.300.0110.00616.48
7.2.290.0100.01016.62
7.2.60.0040.00716.73
7.2.00.0030.01019.10
7.1.200.0030.01015.86
7.1.100.0030.01017.79
7.1.70.0000.00816.72
7.1.60.0130.01019.43
7.1.50.0030.01416.72
7.1.00.0030.07722.57
7.0.200.0210.00414.75
7.0.60.0130.07720.00
7.0.50.0100.07317.72
7.0.40.0130.06320.24
7.0.30.0200.04020.22
7.0.20.0330.07720.09
7.0.10.0030.04320.15
7.0.00.0170.07720.07
5.6.280.0070.07021.13
5.6.210.0130.06720.55
5.6.200.0130.04018.19
5.6.190.0070.08720.63
5.6.180.0130.05320.77
5.6.170.0170.06020.55
5.6.160.0230.06720.49
5.6.150.0030.06018.19
5.6.140.0330.03718.15
5.6.130.0030.04018.20
5.6.120.0130.05321.12
5.6.110.0070.08320.98
5.6.100.0030.04721.00
5.6.90.0130.07320.97
5.6.80.0000.04020.51
5.5.350.0030.06720.35
5.5.340.0100.06717.96
5.5.330.0100.08720.27
5.5.320.0200.04020.32
5.5.310.0230.07720.28
5.5.300.0100.03717.98
5.5.290.0130.06317.98
5.5.280.0070.05320.89
5.5.270.0000.04720.73
5.5.260.0070.07020.83
5.5.250.0070.04020.59
5.5.240.0130.06720.28

preferences:
51.68 ms | 401 KiB | 5 Q