3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct() { $this->wut = 'bar'; } public function __get($key) { return '__get'; } } class Bar { public $wut; public function __construct() { $this->wut = 'bar'; } public function __get($key) { return '__get'; } } class Baz { public function __construct() { $this->wut = 'baz'; } } $foo = new Foo; $bar = new Bar; $baz = new Baz; var_dump([$foo->wut, $bar->wut, $baz->wut]);

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.01418.55
8.3.50.0140.00718.32
8.3.40.0120.00318.89
8.3.30.0120.00318.95
8.3.20.0000.01420.20
8.3.10.0050.00323.66
8.3.00.0040.00420.95
8.2.180.0150.00018.34
8.2.170.0040.01122.96
8.2.160.0070.00722.27
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00019.77
8.2.110.0060.00319.20
8.2.100.0060.00617.91
8.2.90.0080.00018.03
8.2.80.0040.00717.97
8.2.70.0030.00618.03
8.2.60.0000.00818.21
8.2.50.0060.00318.10
8.2.40.0050.00319.16
8.2.30.0000.00919.25
8.2.20.0060.00317.55
8.2.10.0050.00217.96
8.2.00.0070.00017.68
8.1.280.0070.01025.92
8.1.270.0040.00418.79
8.1.260.0060.00326.35
8.1.250.0070.00728.09
8.1.240.0030.00622.42
8.1.230.0070.00421.02
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0050.00317.48
8.1.190.0040.00417.25
8.1.180.0030.00518.10
8.1.170.0030.00618.53
8.1.160.0000.00718.90
8.1.150.0070.00018.89
8.1.140.0000.00717.30
8.1.130.0030.00317.70
8.1.120.0000.00717.42
8.1.110.0040.00417.46
8.1.100.0000.00817.37
8.1.90.0000.00717.36
8.1.80.0070.00017.45
8.1.70.0000.00717.43
8.1.60.0070.00317.61
8.1.50.0000.00817.54
8.1.40.0040.00417.53
8.1.30.0040.00417.62
8.1.20.0040.00417.48
8.1.10.0040.00417.42
8.1.00.0000.00717.54
8.0.300.0040.00419.98
8.0.290.0070.00016.63
8.0.280.0000.00718.48
8.0.270.0040.00417.13
8.0.260.0030.00317.25
8.0.250.0040.00417.00
8.0.240.0030.00316.98
8.0.230.0000.00716.98
8.0.220.0070.00016.81
8.0.210.0070.00016.89
8.0.200.0070.00016.82
8.0.190.0040.00416.84
8.0.180.0080.00016.94
8.0.170.0000.00716.90
8.0.160.0000.00716.89
8.0.150.0080.00016.86
8.0.140.0040.00416.72
8.0.130.0050.00013.30
8.0.120.0000.00916.74
8.0.110.0040.00416.80
8.0.100.0040.00416.89
8.0.90.0000.00716.80
8.0.80.0130.00316.91
8.0.70.0070.00016.79
8.0.60.0000.00716.84
8.0.50.0080.00016.67
8.0.30.0110.00817.04
8.0.20.0090.01017.40
8.0.10.0030.00516.81
8.0.00.0080.01316.59
7.4.330.0000.00515.14
7.4.320.0000.00716.60
7.4.300.0040.00416.51
7.4.290.0030.00316.55
7.4.280.0080.00016.59
7.4.270.0040.00416.46
7.4.260.0000.00716.59
7.4.250.0060.00316.56
7.4.240.0040.00416.56
7.4.230.0000.00616.41
7.4.220.0120.00616.55
7.4.210.0040.01116.67
7.4.200.0070.00016.71
7.4.160.0060.00916.39
7.4.150.0110.00817.40
7.4.140.0100.00817.86
7.4.130.0080.01016.53
7.4.120.0070.01116.38
7.4.110.0070.01316.41
7.4.100.0080.01216.45
7.4.90.0060.01016.57
7.4.80.0060.01519.39
7.4.70.0060.01216.47
7.4.60.0090.00616.45
7.4.50.0000.00516.38
7.4.40.0110.00616.43
7.4.30.0030.01416.52
7.4.00.0040.00715.15
7.3.330.0000.00513.13
7.3.320.0000.00513.15
7.3.310.0050.00316.20
7.3.300.0000.00716.32
7.3.290.0050.01016.27
7.3.280.0080.01116.29
7.3.270.0100.01017.40
7.3.260.0100.00716.38
7.3.250.0130.00416.28
7.3.240.0030.01416.38
7.3.230.0070.01016.46
7.3.210.0030.01316.53
7.3.200.0110.00719.39
7.3.190.0110.00616.38
7.3.180.0030.01216.39
7.3.170.0030.01516.45
7.3.160.0060.00916.38
7.2.330.0160.00416.43
7.2.320.0110.01116.36
7.2.310.0130.00616.37
7.2.300.0070.01016.75
7.2.290.0120.00916.64
7.2.00.0030.01019.28
7.1.100.0860.00715.93
7.1.70.0030.01017.03
7.1.60.0040.00819.22
7.1.50.0090.00916.91
7.1.00.0070.07022.54
7.0.200.0000.00716.65
7.0.140.0000.07722.18
7.0.60.0070.07719.89
7.0.50.0070.06017.87
7.0.40.0000.05020.11
7.0.30.0170.04720.16
7.0.20.0230.04020.26
7.0.10.0070.08320.11
7.0.00.0100.03720.25
5.6.280.0100.06720.83
5.6.210.0130.08020.77
5.6.200.0030.06718.22
5.6.190.0070.06020.61
5.6.180.2530.04320.57
5.6.170.0330.07320.54
5.6.160.0100.08020.45
5.6.150.0030.05018.16
5.6.140.0000.04318.22
5.6.130.0000.08718.17
5.6.120.0100.08021.14
5.6.110.0100.08721.01
5.6.100.0070.07321.14
5.6.90.0030.07720.98
5.6.80.0070.03720.37
5.6.70.3500.03020.31
5.5.350.0200.08320.44
5.5.340.0030.05018.04
5.5.330.0100.04720.47
5.5.320.0400.08020.49
5.5.310.0100.04320.36
5.5.300.0070.04017.98
5.5.290.0070.08017.95
5.5.280.0030.04320.83
5.5.270.0070.08020.85
5.5.260.0100.08320.80
5.5.250.0070.05020.72
5.5.240.0230.07720.17
5.4.450.0070.06019.17
5.4.440.0100.07719.58
5.4.430.0600.05719.55
5.4.420.0770.05019.55
5.4.410.0830.05719.52
5.4.400.0770.05719.31
5.4.390.0100.05718.86
5.4.380.0300.04718.71
5.4.370.0330.06318.75
5.4.360.0170.05318.57
5.4.350.0170.06018.79
5.4.340.0070.07018.64
5.4.320.0270.04718.70
5.4.310.0170.06018.71
5.4.300.0130.06018.74
5.4.290.0270.05018.57
5.4.280.0200.05318.75
5.4.270.0200.07718.80
5.4.260.0400.05318.71
5.4.250.0230.07318.59
5.4.240.0130.08318.75
5.4.230.0270.07018.75
5.4.220.0300.07018.49
5.4.210.0230.05018.67
5.4.200.0330.05316.61
5.4.190.0130.07018.74
5.4.180.0330.04718.81
5.4.170.0300.07018.77
5.4.160.0300.06718.80
5.4.150.0330.06018.73
5.4.140.0170.07316.32
5.4.130.0370.05316.37
5.4.120.0270.06316.25
5.4.110.0230.06716.27
5.4.100.0330.06016.27
5.4.90.0270.06716.27
5.4.80.0130.07316.26
5.4.70.0370.09716.19
5.4.60.0130.06316.21
5.4.50.0300.06316.39
5.4.40.0030.06716.27
5.4.30.0230.05016.39
5.4.20.0270.05016.41
5.4.10.0170.07016.25
5.4.00.0270.04715.72
5.3.290.0300.06014.67
5.3.280.0300.04714.80
5.3.270.0200.07714.78
5.3.260.0370.05714.63
5.3.250.0300.06314.67
5.3.240.0170.05714.74
5.3.230.0300.04714.77
5.3.220.0230.05314.59
5.3.210.0230.05714.71
5.3.200.0100.06314.67
5.3.190.0230.07014.59
5.3.180.0270.06714.67
5.3.170.0270.04714.79
5.3.160.0300.06314.68
5.3.150.0170.05714.57
5.3.140.0230.05014.61
5.3.130.0270.07014.58
5.3.120.0230.07314.66
5.3.110.0130.08014.78
5.3.100.0230.06714.14
5.3.90.0230.07014.07
5.3.80.0270.04714.02
5.3.70.0130.05714.15
5.3.60.0170.05014.12
5.3.50.0170.05314.01
5.3.40.0270.06014.01
5.3.30.0230.06713.99
5.3.20.0230.06313.72
5.3.10.0230.04313.69
5.3.00.0200.05013.64
5.2.170.0200.03711.26
5.2.160.0100.04311.16
5.2.150.0070.05011.27
5.2.140.0070.05311.18
5.2.130.0130.04711.23
5.2.120.0170.03711.15
5.2.110.0100.06011.22
5.2.100.0200.05311.22
5.2.90.0170.05711.13
5.2.80.0170.05711.21
5.2.70.0070.06711.13
5.2.60.0170.05711.04
5.2.50.0270.04011.01
5.2.40.0130.04011.00
5.2.30.0070.06310.99
5.2.20.0070.05011.17
5.2.10.0130.05310.94
5.2.00.0130.05710.82
5.1.60.0170.04310.03
5.1.50.0100.05010.11
5.1.40.0130.04710.10
5.1.30.0130.03710.46
5.1.20.0100.04010.34
5.1.10.0100.03710.26
5.1.00.0170.03010.27
5.0.50.0070.0308.63
5.0.40.0030.0308.63
5.0.30.0070.0478.27
5.0.20.0030.0338.29
5.0.10.0030.0338.23
5.0.00.0070.0478.20
4.4.90.0030.0276.02
4.4.80.0030.0276.02
4.4.70.0030.0336.02
4.4.60.0030.0336.02
4.4.50.0030.0336.02
4.4.40.0070.0476.02
4.4.30.0170.0206.02
4.4.20.0070.0236.02
4.4.10.0030.0276.02
4.4.00.0070.0376.02
4.3.110.0030.0236.02
4.3.100.0000.0306.02
4.3.90.0070.0206.02
4.3.80.0100.0406.02
4.3.70.0070.0306.02
4.3.60.0100.0206.02
4.3.50.0130.0176.02
4.3.40.0070.0336.02
4.3.30.0070.0206.02
4.3.20.0000.0276.02
4.3.10.0000.0276.02
4.3.00.0030.0207.29

preferences:
42.34 ms | 400 KiB | 5 Q