3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class Foo { public function getTest($bar = null) { if($bar === 'test'){ return 1; } } } $test = new Foo(); var_dump($test->getTest() === null);

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.5.00.0160.00619.79
8.4.150.0020.00014.05
8.4.140.0070.00217.68
8.4.130.0080.01317.84
8.4.120.0080.01122.36
8.4.110.0100.00919.11
8.4.100.0130.00717.43
8.4.90.0050.00623.99
8.4.80.0060.00218.78
8.4.70.0060.00219.16
8.4.60.0040.00418.87
8.4.50.0130.00818.55
8.4.40.0130.00319.63
8.4.30.0080.01217.77
8.4.20.0100.01019.40
8.4.10.0150.00319.17
8.3.280.0090.01218.23
8.3.270.0120.00716.71
8.3.260.0160.00316.41
8.3.250.0140.00518.79
8.3.240.0110.00816.38
8.3.230.0100.00916.54
8.3.220.0090.00819.09
8.3.210.0100.00516.56
8.3.200.0070.00216.58
8.3.190.0090.00917.09
8.3.180.0110.00818.86
8.3.170.0150.00316.33
8.3.160.0130.00618.87
8.3.150.0030.01618.71
8.3.140.0110.00718.89
8.3.130.0030.00618.43
8.3.120.0030.00618.91
8.3.110.0060.00318.55
8.3.100.0070.00424.06
8.3.90.0040.00426.77
8.3.80.0030.00619.36
8.3.70.0070.00716.58
8.3.60.0140.00718.29
8.3.50.0120.00116.45
8.3.40.0100.01018.46
8.3.30.0090.00618.68
8.3.20.0040.00420.17
8.3.10.0040.00423.68
8.3.00.0000.00819.25
8.2.290.0100.01118.69
8.2.280.0140.00718.34
8.2.270.0120.00618.39
8.2.260.0060.00616.32
8.2.250.0040.00416.73
8.2.240.0040.00418.99
8.2.230.0150.00020.94
8.2.220.0130.00737.54
8.2.210.0080.00026.77
8.2.200.0080.00318.88
8.2.190.0090.00616.58
8.2.180.0070.01118.41
8.2.170.0070.00722.96
8.2.160.0140.00520.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.00
8.2.120.0040.00426.35
8.2.110.0040.00422.11
8.2.100.0070.00417.91
8.2.90.0000.00817.60
8.2.80.0000.00819.38
8.2.70.0000.00817.68
8.2.60.0040.00417.92
8.2.50.0080.00018.10
8.2.40.0000.00720.46
8.2.30.0030.00319.41
8.2.20.0040.00417.98
8.2.10.0000.00718.02
8.2.00.0000.00718.16
8.1.330.0110.00818.49
8.1.320.0150.00716.41
8.1.310.0100.01016.73
8.1.300.0040.00718.32
8.1.290.0060.00330.84
8.1.280.0100.00625.92
8.1.270.0030.00622.14
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00322.03
8.1.230.0080.00320.94
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0080.00017.23
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0070.00018.72
8.1.150.0000.00718.80
8.1.140.0070.00019.06
8.1.130.0040.00418.91
8.1.120.0000.00717.45
8.1.110.0000.00717.31
8.1.100.0000.00717.38
8.1.90.0030.00617.39
8.1.80.0080.00017.44
8.1.70.0060.00317.28
8.1.60.0040.00417.46
8.1.50.0040.00417.48
8.1.40.0000.00717.46
8.1.30.0040.00717.57
8.1.20.0090.00317.68
8.1.10.0080.00017.48
8.1.00.0000.00817.41
8.0.300.0070.00020.07
8.0.290.0030.00616.63
8.0.280.0070.00018.41
8.0.270.0040.00417.18
8.0.260.0060.00017.18
8.0.250.0070.00316.88
8.0.240.0040.00416.91
8.0.230.0030.00316.75
8.0.220.0030.00316.80
8.0.210.0070.00016.72
8.0.200.0030.00316.94
8.0.190.0050.00216.79
8.0.180.0040.00416.73
8.0.170.0060.00616.87
8.0.160.0000.00716.75
8.0.150.0030.00816.77
8.0.140.0000.00716.66
8.0.130.0030.00313.29
8.0.120.0000.00716.88
8.0.110.0070.00016.75
8.0.100.0040.00416.65
8.0.90.0040.00416.89
8.0.80.0090.00616.82
8.0.70.0070.00016.78
8.0.60.0000.00816.82
8.0.50.0040.00416.93
8.0.30.0130.00817.02
8.0.20.0100.01517.40
8.0.10.0000.00716.98
8.0.00.0140.00916.77
7.4.330.0030.00315.55
7.4.320.0030.00316.48
7.4.300.0060.00016.51
7.4.290.0030.00516.55
7.4.280.0060.00316.63
7.4.270.0040.00416.48
7.4.260.0030.00316.55
7.4.250.0000.00716.55
7.4.240.0030.00316.46
7.4.230.0030.00316.34
7.4.220.0070.00016.48
7.4.210.0070.00916.49
7.4.200.0000.00716.61
7.4.160.0050.01316.47
7.4.150.0110.00817.40
7.4.140.0110.00917.86
7.4.130.0140.00716.64
7.4.120.0140.00916.43
7.4.110.0110.00716.34
7.4.100.0070.01116.43
7.4.90.0070.01016.34
7.4.80.0090.01219.39
7.4.70.0110.00616.56
7.4.60.0110.00416.40
7.4.50.0120.00616.53
7.4.40.0090.00816.41
7.4.00.0000.01515.07
7.3.330.0000.00613.21
7.3.320.0000.00613.38
7.3.310.0000.00716.35
7.3.300.0040.00416.23
7.3.290.0000.00716.30
7.3.280.0090.00816.40
7.3.270.0110.00617.40
7.3.260.0100.00716.43
7.3.250.0100.00916.37
7.3.240.0090.00916.39
7.3.230.0170.00716.55
7.3.210.0100.00716.27
7.3.200.0060.01016.36
7.3.190.0060.01016.60
7.3.180.0090.00616.38
7.3.170.0040.01216.40
7.3.160.0080.00816.50
7.3.10.0060.00616.41
7.3.00.0000.01316.34
7.2.330.0080.00816.65
7.2.320.0130.00316.67
7.2.310.0030.01316.40
7.2.300.0090.00616.43
7.2.290.0090.00916.56
7.2.130.0070.00316.88
7.2.120.0000.01616.80
7.2.110.0100.00616.65
7.2.100.0090.00317.01
7.2.90.0060.00316.88
7.2.80.0070.00316.78
7.2.70.0030.01016.77
7.2.60.0040.00916.69
7.2.50.0070.00716.79
7.2.40.0070.01016.52
7.2.30.0040.01116.92
7.2.20.0060.00316.83
7.2.10.0270.01017.22
7.2.00.0290.01017.19
7.1.250.0040.00815.86
7.1.240.0030.00616.00
7.1.230.0090.00015.88
7.1.220.0030.00815.96
7.1.210.0060.00915.84
7.1.200.0060.00615.59
7.1.190.0040.00815.63
7.1.180.0000.01315.73
7.1.170.0040.00715.68
7.1.160.0060.00615.57
7.1.150.0030.00915.86
7.1.140.0100.00315.82
7.1.130.0340.00716.47
7.1.120.0060.00616.18
7.1.110.0230.00816.06
7.1.100.0250.00816.05
7.1.90.0050.01215.76
7.1.80.0270.00815.88
7.1.70.0100.00515.70
7.1.60.0470.00824.63
7.1.50.0410.01124.49
7.1.40.0330.01424.08
7.1.30.0140.01024.09
7.1.20.0100.01124.29
7.1.10.0230.01015.37
7.1.00.0320.00215.40
7.0.330.0080.00315.45
5.6.380.0000.01414.25

preferences:
173.47 ms | 403 KiB | 5 Q