3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $foo; public function getFoo() { return $this->foo; } } class Bar extends Foo { public function __construct($foo) { $this->foo = $foo; } } $foo = new Foo(new stdClass()); $bar = new Bar(new stdClass()); var_dump($foo, $bar);

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.0070.00718.18
8.3.50.0260.00322.09
8.3.40.0100.01018.89
8.3.30.0120.00318.86
8.3.20.0050.00320.39
8.3.10.0040.00422.10
8.3.00.0000.00722.43
8.2.180.0150.00916.38
8.2.170.0070.01022.96
8.2.160.0140.00020.77
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00019.23
8.2.110.0090.00020.30
8.2.100.0040.00817.66
8.2.90.0040.00418.98
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0030.00517.80
8.2.30.0000.00817.96
8.2.20.0000.00717.67
8.2.10.0000.00817.55
8.2.00.0030.00917.51
8.1.280.0130.00725.92
8.1.270.0030.00522.05
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0090.00020.75
8.1.230.0080.00317.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01117.48
8.1.190.0080.00017.53
8.1.180.0070.00018.69
8.1.170.0040.00418.52
8.1.160.0040.00421.96
8.1.150.0000.00718.55
8.1.140.0040.00417.32
8.1.130.0000.00717.71
8.1.120.0040.00317.40
8.1.110.0000.00817.43
8.1.100.0000.00817.45
8.1.90.0000.00717.40
8.1.80.0030.00417.43
8.1.70.0030.00317.38
8.1.60.0000.00917.62
8.1.50.0000.00717.55
8.1.40.0040.00417.43
8.1.30.0000.00717.70
8.1.20.0040.00417.67
8.1.10.0000.00717.39
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0000.00818.39
8.0.270.0000.00717.09
8.0.260.0030.00316.76
8.0.250.0040.00416.92
8.0.240.0060.00316.82
8.0.230.0030.00316.89
8.0.220.0000.00716.72
8.0.210.0000.00716.86
8.0.200.0000.00816.91
8.0.190.0030.00316.90
8.0.180.0000.00716.79
8.0.170.0000.00916.91
8.0.160.0040.00416.84
8.0.150.0070.00016.81
8.0.140.0000.00716.78
8.0.130.0060.00013.30
8.0.120.0000.00816.84
8.0.110.0000.00716.79
8.0.100.0000.00716.71
8.0.90.0040.00416.83
8.0.80.0120.00316.91
8.0.70.0000.00816.66
8.0.60.0070.00016.72
8.0.50.0000.00716.83
8.0.30.0100.00817.24
8.0.20.0100.00817.40
8.0.10.0050.00216.85
8.0.00.0080.00916.56
7.4.330.0000.00615.00
7.4.320.0000.00616.46
7.4.300.0040.00416.61
7.4.290.0070.00016.66
7.4.280.0050.00516.55
7.4.270.0000.00616.49
7.4.260.0060.00316.40
7.4.250.0030.00316.46
7.4.240.0030.00516.60
7.4.230.0040.00416.33
7.4.220.0100.01716.54
7.4.210.0100.00616.60
7.4.200.0040.00416.59
7.4.190.0040.00416.39
7.4.160.0100.00616.32
7.4.150.0070.01017.40
7.4.140.0150.00517.86
7.4.130.0110.00816.52
7.4.120.0120.00516.55
7.4.110.0070.01016.56
7.4.100.0130.00916.61
7.4.90.0110.00616.52
7.4.80.0060.01619.39
7.4.70.0130.00616.59
7.4.60.0080.00816.40
7.4.50.0000.00816.29
7.4.40.0000.01322.77
7.4.30.0060.01016.39
7.4.00.0030.01014.79
7.3.330.0000.00513.02
7.3.320.0050.00013.23
7.3.310.0040.00416.34
7.3.300.0030.00316.29
7.3.290.0030.01616.23
7.3.280.0070.01116.21
7.3.270.0050.01117.40
7.3.260.0060.01716.20
7.3.250.0110.00816.35
7.3.240.0070.01016.53
7.3.230.0120.00616.39
7.3.210.0100.00616.16
7.3.200.0120.00619.39
7.3.190.0130.00916.33
7.3.180.0060.00916.17
7.3.170.0090.01316.27
7.3.160.0090.00616.27
7.3.120.0060.01014.84
7.3.110.0090.00614.57
7.3.100.0080.00614.58
7.3.90.0110.00414.37
7.3.80.0040.01114.58
7.3.70.0120.00614.82
7.3.60.0060.00614.70
7.3.50.0060.00914.48
7.3.40.0030.01314.64
7.3.30.0070.00414.58
7.3.20.0120.00316.32
7.3.10.0040.01216.41
7.3.00.0030.01316.51
7.2.330.0090.00916.65
7.2.320.0130.01016.64
7.2.310.0060.01216.21
7.2.300.0130.00616.67
7.2.290.0060.00916.58
7.2.240.0030.01014.86
7.2.230.0040.01215.11
7.2.220.0060.00614.89
7.2.210.0000.01115.04
7.2.200.0040.01414.90
7.2.190.0120.00314.59
7.2.180.0040.00714.82
7.2.170.0000.01314.98
7.2.160.0000.01814.80
7.2.150.0000.01116.79
7.2.140.0040.01416.81
7.2.130.0030.01016.63
7.2.120.0080.00816.42
7.2.110.0070.00316.39
7.2.100.0060.00916.76
7.2.90.0000.01616.55
7.2.80.0120.00416.64
7.2.70.0110.00416.66
7.2.60.0060.00816.67
7.2.50.0070.00416.87
7.2.40.0000.01716.92
7.2.30.0130.00316.80
7.2.20.0030.00716.56
7.2.10.0070.00717.08
7.2.00.0180.00917.87
7.1.330.0040.01115.65
7.1.320.0030.01115.88
7.1.310.0100.00715.48
7.1.300.0080.00815.57
7.1.290.0040.00915.79
7.1.280.0000.01615.75
7.1.270.0100.00315.67
7.1.260.0000.01215.78
7.1.250.0000.01515.39
7.1.200.0030.00815.78
7.1.100.0040.01118.25
7.1.70.0090.00016.85
7.1.60.0110.01119.82
7.1.50.0040.01416.96
7.1.00.0100.07022.29
7.0.200.0050.00316.55
7.0.140.0000.07722.07
7.0.60.0100.07720.01
7.0.50.0100.06017.87
7.0.40.0030.05020.27
7.0.30.0330.03720.11
7.0.20.0230.08720.21
7.0.10.0170.09020.20
7.0.00.0030.06020.12
5.6.280.0030.07321.16
5.6.210.0200.06720.70
5.6.200.0130.06318.15
5.6.190.0130.07720.58
5.6.180.3370.04320.46
5.6.170.0130.05720.46
5.6.160.0030.05720.54
5.6.150.0030.04318.29
5.6.140.0130.04018.10
5.6.130.0070.05318.24
5.6.120.0130.05721.14
5.6.110.0130.07720.89
5.6.100.0100.05020.99
5.6.90.0100.08320.99
5.6.80.0030.05720.38
5.6.70.0270.06720.54
5.5.350.0000.04320.35
5.5.340.0030.06717.98
5.5.330.0130.05020.43
5.5.320.0130.05020.29
5.5.310.0300.06320.27
5.5.300.0070.08018.04
5.5.290.0100.03317.97
5.5.280.0030.04020.88
5.5.270.0130.08020.87
5.5.260.0100.07720.88
5.5.250.0000.04320.79
5.5.240.0070.08020.16
5.4.450.0230.04719.48
5.4.440.0130.05719.16
5.4.430.0100.05719.59
5.4.420.0070.06019.32
5.4.410.0100.05319.28
5.4.400.1930.00018.49
5.4.390.0600.00018.72
5.4.380.0100.06318.74
5.4.370.0370.05018.72
5.4.360.0500.03018.84
5.4.350.0400.04718.83
5.4.340.0430.05018.80
5.4.320.0070.03512.50
5.4.310.0060.04012.51
5.4.300.0110.03612.50
5.4.290.0080.04212.50
5.4.280.0060.04412.40
5.4.270.0080.03412.40
5.4.260.0070.07318.95
5.4.250.0100.05318.91
5.4.240.0270.04318.74
5.4.230.0070.05319.02
5.4.220.0100.08018.91
5.4.210.0070.05718.76
5.4.200.0030.06018.93
5.4.190.0200.04318.94
5.4.180.0200.04318.73
5.4.170.0170.04718.79
5.4.160.0170.04718.63
5.4.150.0100.07318.95
5.4.140.0170.04716.46
5.4.130.0170.04316.48
5.4.120.0030.05316.55
5.4.110.0070.05016.65
5.4.100.0100.04716.41
5.4.90.0070.05016.46
5.4.80.0170.05716.55
5.4.70.0130.04716.34
5.4.60.0130.05016.48
5.4.50.0030.05016.35
5.4.40.0070.05016.59
5.4.30.0070.05016.38
5.4.20.0100.05016.49
5.4.10.0130.04716.57
5.4.00.0100.06715.91
5.3.290.0100.03912.80
5.3.280.0100.06714.79
5.3.270.0130.05014.52
5.3.260.0130.04714.52
5.3.250.0070.06314.60
5.3.240.0070.05714.77
5.3.230.0130.05014.82
5.3.220.0130.06714.48
5.3.210.0200.04014.73
5.3.200.0100.07314.64
5.3.190.0100.05314.73
5.3.180.0070.05014.70
5.3.170.0130.05014.54
5.3.160.0130.04714.56
5.3.150.0170.05014.66
5.3.140.0170.06314.46
5.3.130.0100.05714.64
5.3.120.0030.06014.54
5.3.110.0030.05714.77
5.3.100.0070.05014.05
5.3.90.0070.05014.01
5.3.80.0130.04713.85
5.3.70.0130.06314.10
5.3.60.0100.04714.16
5.3.50.0130.04314.04
5.3.40.0070.05013.96
5.3.30.0030.05013.98
5.3.20.0030.07313.53
5.3.10.0100.04713.73
5.3.00.0030.08013.63
5.2.170.0070.04011.15
5.2.160.0030.04011.05
5.2.150.0070.06311.37
5.2.140.0100.04011.13
5.2.130.0170.04711.11
5.2.120.0100.03311.19
5.2.110.0070.04011.29
5.2.100.0000.04711.17
5.2.90.0000.04711.33
5.2.80.0070.04311.18
5.2.70.0170.04011.09
5.2.60.0030.06011.06
5.2.50.0030.04010.93
5.2.40.0070.03710.99
5.2.30.0070.04010.96
5.2.20.0000.04310.94
5.2.10.0070.05010.94
5.2.00.0070.04310.69
5.1.60.0070.03310.15
5.1.50.0030.03310.18
5.1.40.0000.0379.94
5.1.30.0100.03010.30
5.1.20.0030.03710.33
5.1.10.0000.04310.08
5.1.00.0070.05010.31
5.0.50.0030.0308.39
5.0.40.0030.0278.38
5.0.30.0100.0338.29
5.0.20.0030.0278.29
5.0.10.0100.0338.27
5.0.00.0000.0438.36
4.4.90.0030.0307.50
4.4.80.0030.0237.50
4.4.70.0030.0207.50
4.4.60.0030.0207.50
4.4.50.0030.0207.50
4.4.40.0030.0337.50
4.4.30.0000.0337.50
4.4.20.0070.0277.49
4.4.10.0030.0207.49
4.4.00.0070.0307.49
4.3.110.0070.0177.49
4.3.100.0070.0177.49
4.3.90.0000.0237.48
4.3.80.0030.0337.45
4.3.70.0070.0277.44
4.3.60.0030.0237.44
4.3.50.0030.0237.44
4.3.40.0000.0377.44
4.3.30.0000.0237.44
4.3.20.0070.0177.44
4.3.10.0030.0207.44
4.3.00.0070.0177.50

preferences:
53.14 ms | 401 KiB | 5 Q