3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo; public function getFoo() { return $this->foo; } } class Bar extends Foo { public function __construct($foo) { $this->foo = $foo; } } class FooBar { public $test = 'Hello World!'; } $test = new FooBar(); $foo = new Foo($test); $bar = new Bar($test); echo "===\n"; print_r($foo); echo "---\n"; print_r($bar); echo "===\n";

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.0120.00618.31
8.3.50.0100.00921.91
8.3.40.0030.01518.61
8.3.30.0110.00419.01
8.3.20.0080.00020.34
8.3.10.0070.00022.09
8.3.00.0000.00722.39
8.2.180.0070.00716.75
8.2.170.0100.01022.96
8.2.160.0100.00320.79
8.2.150.0030.00624.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00619.25
8.2.110.0080.00022.26
8.2.100.0040.00719.38
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0050.00317.46
8.2.60.0000.00817.93
8.2.50.0080.00018.07
8.2.40.0040.00418.22
8.2.30.0000.00717.98
8.2.20.0000.00717.66
8.2.10.0040.00417.63
8.2.00.0050.00517.66
8.1.280.0140.00025.92
8.1.270.0040.01122.02
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0080.00023.84
8.1.230.0080.00319.14
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.41
8.1.180.0040.00418.58
8.1.170.0000.00818.53
8.1.160.0070.00021.95
8.1.150.0000.00718.57
8.1.140.0000.00717.30
8.1.130.0030.00317.73
8.1.120.0000.00717.37
8.1.110.0000.00817.39
8.1.100.0040.00417.40
8.1.90.0020.00517.43
8.1.80.0030.00517.34
8.1.70.0040.00417.27
8.1.60.0000.00817.47
8.1.50.0080.00017.46
8.1.40.0080.00017.45
8.1.30.0000.00817.61
8.1.20.0060.00317.57
8.1.10.0040.00417.55
8.1.00.0050.00317.40
8.0.300.0020.00518.77
8.0.290.0000.00717.16
8.0.280.0000.00818.50
8.0.270.0000.00717.25
8.0.260.0000.00716.73
8.0.250.0070.00016.96
8.0.240.0040.00416.74
8.0.230.0030.00316.94
8.0.220.0040.00416.72
8.0.210.0030.00316.73
8.0.200.0040.00416.95
8.0.190.0080.00016.76
8.0.180.0040.00416.77
8.0.170.0060.00316.76
8.0.160.0040.00416.86
8.0.150.0040.00416.80
8.0.140.0000.00716.76
8.0.130.0000.00513.31
8.0.120.0050.00316.80
8.0.110.0070.00016.68
8.0.100.0000.00816.79
8.0.90.0000.00716.86
8.0.80.0200.00016.84
8.0.70.0030.00516.87
8.0.60.0040.00416.82
8.0.50.0070.00016.68
8.0.30.0080.01117.04
8.0.20.0120.00617.40
8.0.10.0030.00316.87
8.0.00.0100.00716.85
7.4.330.0020.00215.09
7.4.320.0000.00616.43
7.4.300.0000.00616.42
7.4.290.0070.00016.61
7.4.280.0030.00316.52
7.4.270.0030.00316.66
7.4.260.0030.00716.50
7.4.250.0040.00416.49
7.4.240.0040.00316.51
7.4.230.0030.00316.43
7.4.220.0100.00616.45
7.4.210.0070.00916.55
7.4.200.0030.00316.66
7.4.190.0070.00016.45
7.4.160.0150.00016.48
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0060.01116.50
7.4.120.0070.01016.46
7.4.110.0080.00816.60
7.4.100.0070.01016.61
7.4.90.0090.00916.41
7.4.80.0150.00619.39
7.4.70.0130.00316.49
7.4.60.0050.01116.53
7.4.50.0000.00416.35
7.4.40.0040.00722.77
7.4.30.0130.00716.57
7.4.00.0030.01314.92
7.3.330.0000.00613.20
7.3.320.0000.00613.00
7.3.310.0070.00016.22
7.3.300.0070.00016.25
7.3.290.0100.00316.21
7.3.280.0110.00616.19
7.3.270.0060.01617.40
7.3.260.0140.00316.63
7.3.250.0140.00716.22
7.3.240.0060.01216.24
7.3.230.0170.00316.39
7.3.210.0030.01416.41
7.3.200.0100.00719.39
7.3.190.0140.01016.44
7.3.180.0100.00616.40
7.3.170.0140.00316.27
7.3.160.0060.00916.22
7.3.120.0090.00614.72
7.3.10.0110.00416.74
7.3.00.0090.00616.65
7.2.330.0150.00316.42
7.2.320.0140.00916.63
7.2.310.0030.02016.60
7.2.300.0100.00716.32
7.2.290.0030.01316.78
7.2.130.0030.01216.81
7.2.120.0070.00716.68
7.2.110.0000.01016.77
7.2.100.0030.00916.91
7.2.90.0130.00016.96
7.2.80.0100.00316.93
7.2.70.0040.00416.93
7.2.60.0040.00916.87
7.2.50.0070.01016.73
7.2.40.0070.00717.01
7.2.30.0030.01016.90
7.2.20.0080.00816.69
7.2.10.0050.00516.74
7.2.00.0050.00818.08
7.1.250.0030.00715.96
7.1.200.0050.00515.90
7.1.100.0030.00918.26
7.1.70.0000.00816.86
7.1.60.0090.00919.82
7.1.50.0180.00616.96
7.1.00.0030.07322.46
7.0.200.0000.00816.52
7.0.140.0070.06722.00
7.0.60.0070.03719.76
7.0.50.0030.05717.88
7.0.40.0100.04720.21
7.0.30.0230.07720.26
7.0.20.0230.09320.06
7.0.10.0130.08020.16
7.0.00.0000.07020.18
5.6.280.0070.07020.90
5.6.210.0000.09020.75
5.6.200.0070.08718.19
5.6.190.0100.07720.77
5.6.180.0330.07020.42
5.6.170.0300.06020.55
5.6.160.0170.08020.55
5.6.150.0100.03318.15
5.6.140.0030.09018.22
5.6.130.0070.05318.27
5.6.120.0030.04021.01
5.6.110.0200.07321.12
5.6.100.0070.08320.98
5.6.90.0130.07320.88
5.6.80.0170.04020.51
5.5.350.0000.08320.30
5.5.340.0130.07318.09
5.5.330.0070.08320.43
5.5.320.0270.06720.27
5.5.310.0270.06020.24
5.5.300.0070.03717.92
5.5.290.0070.08018.08
5.5.280.0030.07320.74
5.5.270.0030.08720.96
5.5.260.0130.07320.87
5.5.250.0100.05020.59
5.5.240.3870.03720.36
5.4.450.0470.03319.49
5.4.440.0570.05019.47
5.4.430.0630.04319.41
5.4.420.0500.04019.35
5.4.410.0270.03019.33
5.4.400.1070.04018.96
5.4.390.0870.04718.96
5.4.380.0330.06718.83
5.4.370.0370.05018.64
5.4.360.0300.05318.80
5.4.350.0300.06018.46
5.4.340.0330.07718.80
5.4.320.0060.04512.50
5.4.310.0070.03812.50
5.4.300.0090.04212.51
5.4.290.0060.04312.50
5.4.280.0100.04912.40
5.4.270.0140.04512.40
5.4.260.0070.07718.76
5.4.250.0070.05718.91
5.4.240.0100.05318.96
5.4.230.0230.04018.79
5.4.220.0100.06718.90
5.4.210.0070.05318.75
5.4.200.0000.06319.05
5.4.190.0000.08718.92
5.4.180.0100.07018.72
5.4.170.0030.06019.05
5.4.160.0130.05018.95
5.4.150.0030.05718.98
5.4.140.0100.04716.45
5.4.130.0100.05316.44
5.4.120.0030.05716.61
5.4.110.0000.06716.46
5.4.100.0030.05716.52
5.4.90.0030.06316.36
5.4.80.0070.07016.62
5.4.70.0170.06016.50
5.4.60.0200.06316.53
5.4.50.0070.05716.28
5.4.40.0100.04716.52
5.4.30.0070.05716.31
5.4.20.0070.04716.36
5.4.10.0130.04316.58
5.4.00.0030.05015.84
5.3.290.0070.03812.80
5.3.280.0200.04014.57
5.3.270.0070.05714.75
5.3.260.0030.06314.61
5.3.250.0100.06014.70
5.3.240.0130.05314.77
5.3.230.0130.07014.67
5.3.220.0070.05014.66
5.3.210.0170.04714.59
5.3.200.0100.07714.59
5.3.190.0100.07014.58
5.3.180.0130.04714.59
5.3.170.0200.05714.56
5.3.160.0030.06014.56
5.3.150.0100.07014.54
5.3.140.0130.06314.71
5.3.130.0070.05314.77
5.3.120.0070.05314.57
5.3.110.0030.05314.54
5.3.100.0100.04714.13
5.3.90.0000.05714.06
5.3.80.0170.04313.99
5.3.70.0100.05014.09
5.3.60.0030.05714.18
5.3.50.0130.04313.86
5.3.40.0100.04713.95
5.3.30.0030.05714.00
5.3.20.0100.04713.77
5.3.10.0100.04713.83
5.3.00.0000.05713.72
5.2.170.0170.03011.22
5.2.160.0030.04311.13
5.2.150.0030.04311.32
5.2.140.0030.04711.05
5.2.130.0000.05011.08
5.2.120.0030.04311.18
5.2.110.0070.04311.27
5.2.100.0130.03711.06
5.2.90.0100.05311.01
5.2.80.0030.04311.26
5.2.70.0070.04011.16
5.2.60.0030.04311.12
5.2.50.0100.04011.09
5.2.40.0030.04311.07
5.2.30.0030.04311.06
5.2.20.0100.04011.05
5.2.10.0100.04711.09
5.2.00.0170.04310.56
5.1.60.0130.03710.10
5.1.50.0030.0479.97
5.1.40.0100.0439.96
5.1.30.0100.05710.42
5.1.20.0100.03310.58
5.1.10.0000.04010.07
5.1.00.0030.04310.05
5.0.50.0070.0278.75
5.0.40.0070.0238.62
5.0.30.0130.0508.21
5.0.20.0030.0308.13
5.0.10.0030.0278.09
5.0.00.0130.0438.25
4.4.90.0000.0337.44
4.4.80.0070.0277.44
4.4.70.0000.0337.44
4.4.60.0030.0207.44
4.4.50.0030.0207.44
4.4.40.0030.0477.44
4.4.30.0000.0277.44
4.4.20.0030.0207.44
4.4.10.0030.0207.44
4.4.00.0030.0307.44
4.3.110.0000.0237.44
4.3.100.0030.0207.44
4.3.90.0000.0237.44
4.3.80.0070.0437.44
4.3.70.0100.0237.44
4.3.60.0030.0307.44
4.3.50.0000.0237.44
4.3.40.0000.0407.44
4.3.30.0030.0307.44
4.3.20.0030.0277.44
4.3.10.0000.0237.44
4.3.00.0100.01713.23

preferences:
89.9 ms | 401 KiB | 5 Q