3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); $foo = function (string $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.40.0120.00918.84
8.3.30.0140.00018.85
8.3.20.0040.00420.04
8.3.10.0040.00423.48
8.3.00.0030.00619.51
8.2.170.0150.00622.96
8.2.160.0100.00320.45
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00017.50
8.2.110.0070.01122.13
8.2.100.0080.00418.04
8.2.90.0040.00419.26
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0040.00418.05
8.2.50.0040.00418.07
8.2.40.0040.00419.38
8.2.30.0050.00220.63
8.2.20.0000.00817.79
8.2.10.0040.00419.95
8.2.00.0040.00417.94
8.1.270.0050.00224.66
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0060.00322.61
8.1.230.0040.00717.66
8.1.220.0000.00917.74
8.1.210.0000.00818.77
8.1.200.0070.00317.36
8.1.190.0050.00317.22
8.1.180.0000.00718.10
8.1.170.0000.00918.70
8.1.160.0070.00022.00
8.1.150.0040.00418.85
8.1.140.0000.00919.56
8.1.130.0000.00717.64
8.1.120.0000.00717.36
8.1.110.0060.00317.49
8.1.100.0000.00717.41
8.1.90.0040.00417.46
8.1.80.0040.00417.45
8.1.70.0030.00317.34
8.1.60.0030.00617.55
8.1.50.0000.00917.54
8.1.40.0000.01217.43
8.1.30.0030.00517.65
8.1.20.0060.00317.67
8.1.10.0060.00317.59
8.1.00.0030.00617.50
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0040.00417.18
8.0.260.0030.00317.05
8.0.250.0040.00416.81
8.0.240.0000.00716.93
8.0.230.0030.00316.83
8.0.220.0000.00716.88
8.0.210.0040.00316.75
8.0.200.0060.00016.99
8.0.190.0000.00716.86
8.0.180.0040.00416.96
8.0.170.0000.00716.87
8.0.160.0030.00316.95
8.0.150.0000.00716.81
8.0.140.0000.00716.89
8.0.130.0060.00013.32
8.0.120.0050.00316.91
8.0.110.0040.00417.00
8.0.100.0030.00516.96
8.0.90.0000.00717.00
8.0.80.0000.01416.81
8.0.70.0040.00416.84
8.0.60.0070.00016.72
8.0.50.0000.00716.79
8.0.30.0110.00717.05
8.0.20.0120.00917.40
8.0.10.0050.00316.93
8.0.00.0090.00816.68
7.4.330.0000.00715.08
7.4.320.0000.00616.63
7.4.300.0000.00616.55
7.4.290.0030.00316.57
7.4.280.0000.00816.49
7.4.270.0070.00016.49
7.4.260.0050.01116.57
7.4.250.0050.00316.56
7.4.240.0010.00616.44
7.4.230.0040.00416.59
7.4.220.0030.02416.63
7.4.210.0080.01016.44
7.4.200.0040.00416.62
7.4.160.0060.00916.60
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0110.00616.54
7.4.120.0130.00716.64
7.4.110.0120.00416.59
7.4.100.0110.01116.45
7.4.90.0100.01316.52
7.4.80.0100.01319.39
7.4.70.0030.01216.61
7.4.60.0090.00616.40
7.4.50.0040.00016.46
7.4.40.0070.01116.52
7.4.30.0100.01016.36
7.4.00.0070.01014.84
7.3.330.0000.00613.29
7.3.320.0000.00513.21
7.3.310.0000.00716.29
7.3.300.0070.00016.30
7.3.290.0030.00316.31
7.3.280.0090.00916.30
7.3.270.0120.01217.40
7.3.260.0170.00716.52
7.3.250.0110.00816.26
7.3.240.0100.00716.36
7.3.230.0110.01116.61
7.3.210.0030.01316.49
7.3.200.0130.00516.39
7.3.190.0130.00616.49
7.3.180.0060.01216.47
7.3.170.0100.01016.46
7.3.160.0130.00316.31
7.2.330.0030.01416.66
7.2.320.0110.01416.32
7.2.310.0140.00316.58
7.2.300.0090.00916.61
7.2.290.0090.00916.66
7.2.60.0030.00916.89
7.2.00.0000.00819.30
7.1.200.0030.00615.81
7.1.100.0030.01018.18
7.1.70.0030.00316.91
7.1.60.0070.01419.43
7.1.50.0070.01316.72
7.1.00.0030.07722.40
7.0.200.0310.00314.61
7.0.60.0100.08020.00
7.0.50.0070.08017.84
7.0.40.0100.04020.20
7.0.30.0230.08320.33
7.0.20.0300.06720.05
7.0.10.0030.04320.22
7.0.00.0130.07720.09
5.6.280.0070.05320.87
5.6.210.0070.08320.66
5.6.200.0070.06318.19
5.6.190.0030.07720.61
5.6.180.0200.04320.67
5.6.170.0200.04720.47
5.6.160.0130.07720.55
5.6.150.0100.04318.15
5.6.140.0100.05018.18
5.6.130.0070.03718.27
5.6.120.0100.07021.15
5.6.110.0130.07721.13
5.6.100.0100.07020.96
5.6.90.0170.07020.97
5.6.80.0030.03720.43
5.5.350.0100.07720.44
5.5.340.0070.08317.95
5.5.330.0070.08020.25
5.5.320.0300.07720.27
5.5.310.0230.04720.32
5.5.300.0070.03318.02
5.5.290.0030.08018.08
5.5.280.0100.06320.90
5.5.270.0000.05020.84
5.5.260.0130.06020.87
5.5.250.0100.05720.67
5.5.240.0170.07320.35

preferences:
55.37 ms | 400 KiB | 5 Q