3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { return 'bar'; } public function baz() { return null; } } $foo = new Foo(); var_dump([ 'bar' => $foo->bar() ?: '', 'baz' => $foo->baz() ?: 'heh', //'quux' => $foo->quux() ?: 'wololo', ]);

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.0140.00718.30
8.3.50.0100.00822.05
8.3.40.0090.00618.59
8.3.30.0070.00719.09
8.3.20.0050.00320.42
8.3.10.0040.00423.52
8.3.00.0080.00019.05
8.2.180.0040.01118.38
8.2.170.0110.00722.96
8.2.160.0040.01122.17
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00926.16
8.2.120.0040.00420.92
8.2.110.0050.00322.20
8.2.100.0040.00819.57
8.2.90.0000.00819.36
8.2.80.0000.00917.97
8.2.70.0060.00317.63
8.2.60.0000.00817.91
8.2.50.0000.00818.07
8.2.40.0090.00018.22
8.2.30.0000.00818.00
8.2.20.0040.00417.62
8.2.10.0030.00518.12
8.2.00.0000.00717.75
8.1.280.0120.00325.92
8.1.270.0080.00018.91
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0080.00023.73
8.1.230.0040.00719.05
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0040.00418.47
8.1.160.0060.00322.02
8.1.150.0070.00018.84
8.1.140.0020.00519.23
8.1.130.0030.00317.72
8.1.120.0040.00417.49
8.1.110.0080.00017.34
8.1.100.0030.00517.45
8.1.90.0040.00417.49
8.1.80.0050.00317.38
8.1.70.0040.00417.47
8.1.60.0000.00917.56
8.1.50.0030.00517.57
8.1.40.0000.00817.41
8.1.30.0030.00517.62
8.1.20.0040.00417.57
8.1.10.0000.00717.40
8.1.00.0040.00417.48
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0040.00418.49
8.0.270.0050.00317.30
8.0.260.0030.00317.17
8.0.250.0000.00717.01
8.0.240.0040.00416.87
8.0.230.0070.00016.99
8.0.220.0040.00416.76
8.0.210.0030.00316.80
8.0.200.0070.00016.85
8.0.190.0040.00416.93
8.0.180.0030.00516.88
8.0.170.0070.00016.90
8.0.160.0070.00016.77
8.0.150.0030.00316.88
8.0.140.0000.00716.75
8.0.130.0030.00313.29
8.0.120.0000.00816.76
8.0.110.0050.00316.89
8.0.100.0030.00516.91
8.0.90.0040.00416.89
8.0.80.0030.01416.92
8.0.70.0060.00316.94
8.0.60.0000.00816.80
8.0.50.0040.00416.70
8.0.30.0140.00916.97
8.0.20.0100.01317.40
8.0.10.0040.00416.93
8.0.00.0080.01016.70
7.4.330.0000.00615.14
7.4.320.0030.00316.65
7.4.300.0060.00016.55
7.4.290.0000.00716.49
7.4.280.0000.01016.57
7.4.270.0030.00316.63
7.4.260.0070.00016.64
7.4.250.0040.00416.48
7.4.240.0030.00516.45
7.4.230.0000.00716.58
7.4.220.0040.01816.37
7.4.210.0000.01616.60
7.4.200.0000.00716.57
7.4.160.0060.00916.45
7.4.150.0100.00717.40
7.4.140.0080.01017.86
7.4.130.0110.00616.46
7.4.120.0100.00716.53
7.4.110.0090.00916.56
7.4.100.0100.00716.59
7.4.90.0100.00716.50
7.4.80.0120.00819.39
7.4.70.0060.01216.60
7.4.60.0040.01216.57
7.4.50.0000.00816.40
7.4.40.0060.01316.40
7.4.30.0130.01016.55
7.4.00.0070.00715.02
7.3.330.0000.00613.09
7.3.320.0000.00513.34
7.3.310.0030.00316.32
7.3.300.0000.00716.22
7.3.290.0070.00716.32
7.3.280.0110.00716.27
7.3.270.0070.01017.40
7.3.260.0110.00716.27
7.3.250.0080.00916.43
7.3.240.0060.00916.20
7.3.230.0130.00916.44
7.3.210.0070.01016.30
7.3.200.0140.00619.39
7.3.190.0030.01316.47
7.3.180.0110.00516.35
7.3.170.0070.01016.52
7.3.160.0040.01216.28
7.3.10.0030.01316.22
7.3.00.0080.00816.13
7.2.330.0110.00816.55
7.2.320.0110.00716.40
7.2.310.0160.00016.73
7.2.300.0120.00916.37
7.2.290.0120.00916.74
7.2.130.0040.01216.52
7.2.120.0030.00816.37
7.2.110.0040.00916.29
7.2.100.0050.00316.49
7.2.90.0050.00816.51
7.2.80.0100.00716.63
7.2.70.0040.01216.45
7.2.60.0090.00616.30
7.2.50.0060.00316.52
7.2.40.0120.00016.61
7.2.30.0120.00316.66
7.2.20.0090.00916.70
7.2.10.0070.01116.51
7.2.00.0050.00617.85
7.1.250.0000.01015.62
7.1.100.0030.00817.88
7.1.70.0040.00417.07
7.1.60.0070.01819.46
7.1.50.0120.00916.97
7.1.00.0030.07722.49
7.0.200.0030.00316.49
7.0.140.0070.05322.04
7.0.60.0030.07319.93
7.0.50.0030.04717.83
7.0.40.0070.04320.24
7.0.30.0330.07720.24
7.0.20.0170.04320.09
7.0.10.0230.07320.07
7.0.00.0100.07720.19
5.6.280.0070.07021.09
5.6.210.0030.07020.47
5.6.200.0070.08018.19
5.6.190.0070.04020.60
5.6.180.0470.06720.68
5.6.170.0200.05020.47
5.6.160.0100.08020.50
5.6.150.0070.07718.23
5.6.140.0100.04718.28
5.6.130.0100.04718.14
5.6.120.0100.08021.14
5.6.110.0170.06320.99
5.6.100.0100.08021.01
5.6.90.0030.04321.07
5.6.80.0130.07720.38
5.5.350.4230.03720.30
5.5.340.0070.08018.03
5.5.330.0170.05020.28
5.5.320.1000.07720.28
5.5.310.0230.05320.18
5.5.300.0030.08717.99
5.5.290.0070.06717.98
5.5.280.0130.05720.85
5.5.270.0070.03720.87
5.5.260.0130.08020.76
5.5.250.0030.05320.78
5.5.240.0100.06720.18
5.4.450.0430.06019.48
5.4.440.0430.06019.49
5.4.430.0130.05319.21
5.4.420.0100.05719.38
5.4.410.0070.05719.45
5.4.400.0130.05319.22
5.4.390.0230.06018.73
5.4.380.0330.04318.46
5.4.370.0200.05718.46
5.4.360.0330.04718.78
5.4.350.0230.06018.57
5.4.340.0200.06018.79
5.4.320.0170.06718.52
5.4.310.0370.05318.77
5.4.300.0230.05718.61
5.4.290.0170.06018.57
5.4.280.0330.04718.71
5.4.270.0370.04318.71
5.4.260.0230.05318.57
5.4.250.0170.06318.46
5.4.240.0230.06318.46
5.4.230.0300.05718.52
5.4.220.0270.06318.70
5.4.210.0300.05718.69
5.4.200.0330.05316.61
5.4.190.0230.06018.73
5.4.180.0270.05018.76
5.4.170.0230.05718.51
5.4.160.0330.04718.51
5.4.150.0200.06318.75
5.4.140.0330.04316.26
5.4.130.0400.05016.32
5.4.120.0270.05016.28
5.4.110.0200.05716.25
5.4.100.0300.05316.28
5.4.90.0370.05016.23
5.4.80.0300.05016.31
5.4.70.0400.05316.25
5.4.60.0230.05716.27
5.4.50.0230.05716.25
5.4.40.0330.05016.19
5.4.30.0230.05316.28
5.4.20.0270.05316.28
5.4.10.0370.06316.28
5.4.00.0170.06015.74
5.3.290.0370.05014.85
5.3.280.0330.05014.63
5.3.270.0300.05014.66
5.3.260.0400.04714.59
5.3.250.0200.06314.66
5.3.240.0300.05014.73
5.3.230.0270.05314.64
5.3.220.0230.05714.59
5.3.210.0370.05714.79
5.3.200.0270.05314.74
5.3.190.0200.06014.61
5.3.180.0230.06014.61
5.3.170.0300.05014.67
5.3.160.0400.06314.63
5.3.150.0270.06314.58
5.3.140.0270.05314.76
5.3.130.0270.06014.70
5.3.120.0330.05014.68
5.3.110.0270.06014.61
5.3.100.0270.05314.07
5.3.90.0370.04714.04
5.3.80.0400.05014.05
5.3.70.0370.05714.00
5.3.60.0300.05014.15
5.3.50.0330.04713.96
5.3.40.0230.06014.02
5.3.30.0230.06013.98
5.3.20.0230.05713.86
5.3.10.0270.05313.68
5.3.00.0330.06313.75
5.2.170.0470.03711.16
5.2.160.0200.04311.30
5.2.150.0230.04011.13
5.2.140.0200.04711.26
5.2.130.0200.04011.31
5.2.120.0170.04311.23
5.2.110.0200.04711.14
5.2.100.0170.04711.31
5.2.90.0200.04311.18
5.2.80.0170.04711.15
5.2.70.0200.04311.14
5.2.60.0200.04311.17
5.2.50.0200.04311.12
5.2.40.0230.04711.05
5.2.30.0230.05311.18
5.2.20.0170.04011.07
5.2.10.0230.05010.86
5.2.00.0170.05710.70
5.1.60.0200.04710.02
5.1.50.0170.04010.03
5.1.40.0130.03710.02
5.1.30.0270.02710.44
5.1.20.0130.04010.38
5.1.10.0170.03310.11
5.1.00.0170.03310.07
5.0.50.0100.0278.63
5.0.40.0170.0238.61
5.0.30.0170.0508.31
5.0.20.0130.0278.20
5.0.10.0070.0338.36
5.0.00.0300.0378.25
4.4.90.0170.0135.96
4.4.80.0030.0275.93
4.4.70.0100.0205.86
4.4.60.0070.0235.95
4.4.50.0030.0276.00
4.4.40.0070.0375.88
4.4.30.0030.0275.99
4.4.20.0070.0205.99
4.4.10.0000.0305.95
4.4.00.0070.0375.94
4.3.110.0070.0305.81
4.3.100.0070.0235.91
4.3.90.0070.0275.79
4.3.80.0130.0335.78
4.3.70.0100.0205.78
4.3.60.0070.0235.81
4.3.50.0200.0135.80
4.3.40.0030.0375.75
4.3.30.0070.0234.61
4.3.20.0030.0234.53
4.3.10.0070.0204.57
4.3.00.0170.0238.24

preferences:
60.95 ms | 401 KiB | 5 Q