3v4l.org

run code in 300+ PHP versions simultaneously
<?php // // MyClass // Created by Thijs van den Anker on 20/04/15. class MyClass { public function __construct(Foo $a) { die('in'); print($a->$baz); } } class Foo { public $baz = 'jada'; } class Bar { public $baz = 'dadeee'; } $foo = new Foo; $bar = new Bar; $a = new MyClass($foo); ?>

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.0100.00316.48
8.3.50.0140.00718.27
8.3.40.0070.00718.88
8.3.30.0040.01119.01
8.3.20.0050.00320.34
8.3.10.0040.00421.87
8.3.00.0030.00619.50
8.2.180.0070.01418.41
8.2.170.0150.00622.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00319.65
8.2.110.0060.00319.45
8.2.100.0080.00317.75
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0050.00218.07
8.2.30.0050.00218.11
8.2.20.0000.00817.54
8.2.10.0080.00018.06
8.2.00.0030.00517.57
8.1.280.0030.01425.92
8.1.270.0030.00620.71
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.01022.81
8.1.230.0080.00917.42
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0090.00017.35
8.1.190.0040.00417.25
8.1.180.0000.00818.10
8.1.170.0060.00320.25
8.1.160.0080.00021.94
8.1.150.0040.00718.74
8.1.140.0020.00517.40
8.1.130.0000.00717.83
8.1.120.0040.00417.30
8.1.110.0040.00417.38
8.1.100.0000.00717.21
8.1.90.0030.00317.39
8.1.80.0000.00717.37
8.1.70.0080.00017.33
8.1.60.0030.00617.56
8.1.50.0080.00017.42
8.1.40.0090.00317.40
8.1.30.0030.00517.66
8.1.20.0040.00417.73
8.1.10.0050.00317.55
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.39
8.0.270.0030.00317.13
8.0.260.0000.00617.15
8.0.250.0070.00016.83
8.0.240.0030.00316.84
8.0.230.0070.00016.84
8.0.220.0070.00016.79
8.0.210.0000.00716.82
8.0.200.0000.00716.89
8.0.190.0000.00716.95
8.0.180.0030.00516.91
8.0.170.0000.00816.75
8.0.160.0050.00316.79
8.0.150.0000.00716.82
8.0.140.0000.00716.92
8.0.130.0000.00513.25
8.0.120.0030.00516.87
8.0.110.0000.00716.96
8.0.100.0030.00516.80
8.0.90.0040.00416.91
8.0.80.0040.01316.85
8.0.70.0070.00016.93
8.0.60.0040.00416.77
8.0.50.0040.00416.77
8.0.30.0120.00917.08
8.0.20.0160.00817.40
8.0.10.0040.00417.02
8.0.00.0100.00716.66
7.4.330.0050.00015.03
7.4.320.0030.00316.57
7.4.300.0070.00016.65
7.4.290.0000.00716.51
7.4.280.0070.00416.60
7.4.270.0030.00316.40
7.4.260.0040.00316.58
7.4.250.0040.00416.48
7.4.240.0020.00616.47
7.4.230.0040.00216.58
7.4.220.0000.01716.46
7.4.210.0070.00716.54
7.4.200.0070.00016.32
7.4.160.0090.00616.45
7.4.150.0140.00617.40
7.4.140.0110.00917.86
7.4.130.0000.01616.46
7.4.120.0080.01016.43
7.4.110.0030.02416.44
7.4.100.0190.00316.46
7.4.90.0060.01216.32
7.4.80.0150.00419.39
7.4.70.0060.00916.38
7.4.60.0080.01516.51
7.4.50.0040.00016.39
7.4.40.0060.01116.35
7.4.30.0110.01216.46
7.4.00.0080.00715.09
7.3.330.0000.00513.12
7.3.320.0080.00413.13
7.3.310.0070.00016.33
7.3.300.0040.00416.31
7.3.290.0030.00316.31
7.3.280.0050.01116.29
7.3.270.0150.00917.40
7.3.260.0130.01016.24
7.3.250.0100.00816.42
7.3.240.0100.01316.22
7.3.230.0070.01016.55
7.3.210.0130.00316.51
7.3.200.0040.01219.39
7.3.190.0040.01116.16
7.3.180.0090.00916.22
7.3.170.0120.00416.52
7.3.160.0050.01116.30
7.3.120.0060.01214.77
7.3.110.0060.01214.67
7.3.100.0070.00714.70
7.3.90.0110.00714.84
7.3.80.0000.01414.68
7.3.70.0080.00414.40
7.3.60.0000.01514.88
7.3.50.0060.00614.89
7.3.40.0070.00714.78
7.3.30.0080.00514.85
7.3.20.0040.01516.40
7.3.10.0040.00416.38
7.3.00.0030.00716.41
7.2.330.0140.00616.57
7.2.320.0130.01016.45
7.2.310.0140.00916.78
7.2.300.0090.00816.41
7.2.290.0110.00616.67
7.2.250.0030.01715.25
7.2.240.0000.01914.72
7.2.230.0040.01514.83
7.2.220.0120.00615.10
7.2.210.0090.00914.66
7.2.200.0040.01115.14
7.2.190.0060.00914.77
7.2.180.0040.00714.96
7.2.170.0030.01215.02
7.2.60.0040.01116.95
7.2.00.0090.00319.34
7.1.330.0070.00715.37
7.1.320.0070.01015.64
7.1.310.0030.01015.86
7.1.300.0060.00915.79
7.1.290.0000.00915.76
7.1.280.0070.00715.82
7.1.270.0000.01915.61
7.1.260.0080.00315.81
7.1.200.0060.00315.67
7.1.100.0080.00018.00
7.1.70.0000.00817.25
7.1.60.0090.01219.46
7.1.50.0130.01017.08
7.1.00.0000.07722.44
7.0.200.0060.00616.73
7.0.140.0030.06022.08
7.0.60.0000.04319.98
7.0.50.0030.04017.96
7.0.40.0000.04720.13
7.0.30.0300.07020.17
7.0.20.0370.07020.18
7.0.10.0100.05020.23
7.0.00.0000.05720.06
5.6.280.0100.06721.04
5.6.210.0100.06020.65
5.6.200.0100.06318.29
5.6.190.0030.06020.48
5.6.180.0470.03320.53
5.6.170.0300.03720.55
5.6.160.0030.04320.44
5.6.150.0000.07018.16
5.6.140.0030.05318.12
5.6.130.0070.04018.20
5.6.120.0070.04321.05
5.6.110.0170.07720.99
5.6.100.0030.08720.98
5.6.90.0070.08020.96
5.6.80.0200.07020.54
5.5.350.0330.06320.41
5.5.340.0130.07717.98
5.5.330.0100.08320.38
5.5.320.0170.04020.37
5.5.310.0270.06720.38
5.5.300.0070.03717.98
5.5.290.0070.05017.95
5.5.280.0100.07320.77
5.5.270.0100.08320.78
5.5.260.0130.08020.86
5.5.250.0030.05320.59
5.5.240.0370.06720.23
5.4.450.0800.06719.52
5.4.440.0200.05019.45
5.4.430.0070.06019.58
5.4.420.0070.06019.60
5.4.410.0100.05319.45
5.4.400.0170.05018.55
5.4.390.0170.05018.61
5.4.380.0170.05318.57
5.4.370.0130.05718.83
5.4.360.0130.05718.75
5.4.350.0170.05318.44
5.4.340.0130.05718.69
5.4.320.0130.05718.78
5.4.310.0200.04718.51
5.4.300.0230.04718.74
5.4.290.0230.04318.71
5.4.280.0230.04718.77
5.4.270.0170.06318.54
5.4.260.0230.04718.54
5.4.250.0170.06718.44
5.4.240.0230.05018.74
5.4.230.0370.05018.73
5.4.220.0100.07318.43
5.4.210.0100.06018.81
5.4.200.0200.05016.55
5.4.190.0170.06718.70
5.4.180.0030.06718.70
5.4.170.0200.05318.66
5.4.160.0130.05318.72
5.4.150.0130.05718.57
5.4.140.0130.05316.46
5.4.130.0200.04316.25
5.4.120.0070.06016.32
5.4.110.0170.04716.23
5.4.100.0230.04716.41
5.4.90.0200.04716.45
5.4.80.0100.05316.27
5.4.70.0130.05316.44
5.4.60.0130.06016.15
5.4.50.0170.04716.25
5.4.40.0100.05716.15
5.4.30.0230.04316.14
5.4.20.0070.06016.30
5.4.10.0230.04316.26
5.4.00.0100.05315.77
5.3.290.0230.05314.64
5.3.280.0100.05714.72
5.3.270.0170.06014.63
5.3.260.0230.07014.64
5.3.250.0130.05314.80
5.3.240.0170.05314.82
5.3.230.0170.05014.76
5.3.220.0130.05314.59
5.3.210.0170.05714.67
5.3.200.0230.04314.56
5.3.190.0100.05714.54
5.3.180.0100.06314.66
5.3.170.0230.04314.62
5.3.160.0130.05314.54
5.3.150.0170.05014.66
5.3.140.0130.05014.57
5.3.130.0230.04714.60
5.3.120.0230.04714.61
5.3.110.0130.05314.56
5.3.100.0170.05014.24
5.3.90.0230.06014.04
5.3.80.0200.05014.09
5.3.70.0170.05014.04
5.3.60.0230.04314.00
5.3.50.0200.04714.03
5.3.40.0130.05313.93
5.3.30.0100.05314.03
5.3.20.0170.04713.89
5.3.10.0230.04313.88
5.3.00.0170.06013.70
5.2.170.0200.03311.17
5.2.160.0100.04311.29
5.2.150.0170.04311.19
5.2.140.0230.04711.16
5.2.130.0070.04711.23
5.2.120.0130.03711.13
5.2.110.0030.05011.18
5.2.100.0170.04311.13
5.2.90.0070.04711.17
5.2.80.0100.04311.23
5.2.70.0100.04311.22
5.2.60.0130.04011.15
5.2.50.0100.04711.24
5.2.40.0030.04711.02
5.2.30.0130.04011.17
5.2.20.0100.04010.98
5.2.10.0070.04310.96
5.2.00.0070.04310.89
5.1.60.0130.04010.02
5.1.50.0130.03010.02
5.1.40.0070.04010.01
5.1.30.0170.04310.43
5.1.20.0230.03010.53
5.1.10.0030.04010.16
5.1.00.0170.03010.28
5.0.50.0070.0278.66
5.0.40.0070.0278.40
5.0.30.0070.0438.25
5.0.20.0030.0308.39
5.0.10.0100.0278.30
5.0.00.0070.0438.20
4.4.90.0000.0276.03
4.4.80.0030.0235.93
4.4.70.0000.0275.88
4.4.60.0170.0135.86
4.4.50.0130.0135.92
4.4.40.0070.0335.98
4.4.30.0100.0175.88
4.4.20.0070.0205.92
4.4.10.0030.0235.98
4.4.00.0100.0305.90
4.3.110.0070.0235.82
4.3.100.0030.0275.84
4.3.90.0000.0275.80
4.3.80.0100.0375.80
4.3.70.0030.0235.77
4.3.60.0100.0175.90
4.3.50.0070.0275.86
4.3.40.0100.0375.75
4.3.30.0030.0234.59
4.3.20.0000.0304.62
4.3.10.0030.0234.58
4.3.00.0070.0236.91

preferences:
41.68 ms | 400 KiB | 5 Q