3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $options = array(); public function __construct() { $this->options['second_class'] = 'stdClass'; return new $this->options['second_class']('toto'); } } new 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.0070.00716.50
8.3.50.0090.00717.34
8.3.40.0140.00718.92
8.3.30.0100.00718.68
8.3.20.0000.00818.64
8.3.10.0040.00420.35
8.3.00.0050.00319.38
8.2.180.0130.00618.41
8.2.170.0170.00322.96
8.2.160.0100.00321.19
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0040.00419.23
8.2.110.0100.00722.20
8.2.100.0040.01117.91
8.2.90.0080.00317.63
8.2.80.0050.00317.97
8.2.70.0060.00317.88
8.2.60.0050.00318.04
8.2.50.0060.00318.10
8.2.40.0050.00320.46
8.2.30.0000.00818.05
8.2.20.0030.00617.52
8.2.10.0000.00717.67
8.2.00.0000.00717.75
8.1.280.0050.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0100.00728.09
8.1.240.0140.00322.14
8.1.230.0110.00019.03
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0040.00418.80
8.1.150.0040.00418.49
8.1.140.0040.00417.32
8.1.130.0030.00317.75
8.1.120.0050.00317.25
8.1.110.0030.00317.28
8.1.100.0000.00717.29
8.1.90.0040.00417.37
8.1.80.0050.00217.17
8.1.70.0000.00717.21
8.1.60.0060.00317.48
8.1.50.0030.00617.51
8.1.40.0050.00317.54
8.1.30.0050.00317.61
8.1.20.0040.00417.51
8.1.10.0080.00017.63
8.1.00.0080.00017.40
8.0.300.0000.00819.52
8.0.290.0040.00416.75
8.0.280.0030.00318.42
8.0.270.0030.00317.13
8.0.260.0030.00316.69
8.0.250.0000.00716.82
8.0.240.0060.00316.75
8.0.230.0000.00716.79
8.0.220.0000.00816.75
8.0.210.0000.00816.77
8.0.200.0000.00716.82
8.0.190.0030.00516.70
8.0.180.0050.00316.84
8.0.170.0000.00816.68
8.0.160.0040.00416.74
8.0.150.0050.00316.82
8.0.140.0000.00716.61
8.0.130.0060.00013.13
8.0.120.0000.00716.67
8.0.110.0000.00716.82
8.0.100.0040.00416.62
8.0.90.0040.00416.80
8.0.80.0160.00016.70
8.0.70.0000.00716.77
8.0.60.0000.00716.81
8.0.50.0000.00816.87
8.0.30.0090.01016.89
8.0.20.0070.01116.98
8.0.10.0040.00416.97
8.0.00.0130.00716.49
7.4.330.0050.00012.97
7.4.320.0000.00916.32
7.4.300.0030.00316.64
7.4.290.0000.00616.63
7.4.280.0040.00416.35
7.4.270.0050.00216.42
7.4.260.0000.00513.16
7.4.250.0060.00316.49
7.4.240.0000.00716.63
7.4.230.0070.00016.59
7.4.220.0080.01616.63
7.4.210.0080.01016.58
7.4.200.0030.00316.66
7.4.190.0000.00716.68
7.4.160.0060.00916.47
7.4.150.0120.00616.48
7.4.140.0070.01216.37
7.4.130.0100.00816.36
7.4.120.0140.00316.60
7.4.110.0060.01216.56
7.4.100.0120.00616.51
7.4.90.0070.01016.55
7.4.80.0100.01319.39
7.4.70.0110.00616.62
7.4.60.0030.01416.46
7.4.50.0040.00416.57
7.4.40.0090.00316.35
7.4.30.0090.00816.29
7.4.00.0060.00915.18
7.3.330.0000.00613.08
7.3.320.0030.00313.24
7.3.310.0030.00316.32
7.3.300.0030.00316.24
7.3.290.0130.00616.34
7.3.280.0100.00716.25
7.3.270.0090.00916.26
7.3.260.0140.00316.52
7.3.250.0100.00816.39
7.3.240.0120.00616.55
7.3.230.0030.01216.42
7.3.210.0110.00716.51
7.3.200.0070.01116.30
7.3.190.0160.00616.43
7.3.180.0060.00916.46
7.3.170.0140.00316.57
7.3.160.0130.00316.58
7.3.120.0060.00914.62
7.2.330.0100.00916.43
7.2.320.0100.01016.62
7.2.310.0120.01716.73
7.2.300.0090.00916.80
7.2.290.0150.00416.38
7.2.00.0030.01219.36
7.1.100.0060.00618.04
7.1.70.0030.00716.94
7.1.60.0130.01019.40
7.1.50.0070.00416.59
7.1.00.0100.07022.31
7.0.200.0500.00614.26
7.0.140.0070.07022.18
7.0.120.0070.07322.05
7.0.60.0170.07720.05
7.0.50.0030.06017.89
7.0.40.0070.05017.75
7.0.30.0070.08017.74
7.0.20.0030.08717.80
7.0.10.0030.06717.76
7.0.00.0070.05017.75
5.6.280.0070.07020.86
5.6.210.0100.03320.61
5.6.200.0070.06018.29
5.6.190.0130.07318.12
5.6.180.0100.07718.21
5.6.170.0100.07318.15
5.6.160.0100.07718.23
5.6.150.0000.05318.15
5.6.140.0070.04018.27
5.6.130.0100.05718.14
5.6.120.0100.05718.18
5.6.110.0070.07318.14
5.6.100.0070.04718.20
5.6.90.0100.04018.10
5.6.80.0070.04317.55
5.6.70.0000.04017.57
5.6.60.0030.07717.61
5.6.50.0070.08017.50
5.6.40.0100.04717.47
5.6.30.0070.07717.54
5.6.20.0130.04717.49
5.6.10.0130.06717.54
5.6.00.0030.05017.58
5.5.350.0230.07020.40
5.5.340.0030.04717.99
5.5.330.0070.07018.04
5.5.320.0070.04717.97
5.5.310.0100.07017.93
5.5.300.0030.04317.98
5.5.290.0000.04317.95
5.5.280.0100.07717.94
5.5.270.0130.04017.94
5.5.260.0000.06318.05
5.5.250.0100.07017.79
5.5.240.0100.03717.38
5.5.230.0200.06717.33
5.5.220.0100.05717.32
5.5.210.0130.04317.35
5.5.200.0100.06017.27
5.5.190.0100.06317.30
5.5.180.0030.08017.28
5.5.160.0030.04717.43
5.5.150.0100.03317.40
5.5.140.0100.04017.38
5.5.130.0000.05317.29
5.5.120.0100.03317.43
5.5.110.0000.05017.28
5.5.100.0030.04317.24
5.5.90.0070.03317.23
5.5.80.0030.04317.28
5.5.70.0000.04317.23
5.5.60.0000.04317.23
5.5.50.0070.07317.27
5.5.40.0070.07317.27
5.5.30.0030.04017.30
5.5.20.0100.04017.19
5.5.10.0100.05017.19
5.5.00.0000.06717.19
5.4.450.0070.05719.34
5.4.440.0170.06719.38
5.4.430.0070.07019.59
5.4.420.0030.07019.31
5.4.410.0100.04719.18
5.4.400.0100.07319.02
5.4.390.0030.04019.04
5.4.380.0070.07319.11
5.4.370.0100.07719.12
5.4.360.0070.07019.13
5.4.350.0070.06019.13
5.4.340.0030.04318.89
5.4.320.0100.04319.05
5.4.310.0030.05718.96
5.4.300.0070.05019.09
5.4.290.0030.06719.01
5.4.280.0070.04719.01
5.4.270.0000.04019.12
5.4.260.0130.07319.09
5.4.250.0000.04019.05
5.4.240.0070.08019.26
5.4.230.0030.06019.01
5.4.220.0070.07319.09
5.4.210.0170.06318.97
5.4.200.0070.05019.01
5.4.190.0000.04718.94
5.4.180.0100.06019.02
5.4.170.0170.06719.09
5.4.160.0070.07019.10
5.4.150.0100.04019.00
5.4.140.0070.07316.38
5.4.130.0100.03716.35
5.4.120.0070.03316.39
5.4.110.0100.03016.43
5.4.100.0030.03716.38
5.4.90.0000.07716.46
5.4.80.0000.04016.21
5.4.70.0070.07016.51
5.4.60.0100.05716.22
5.4.50.0000.04016.21
5.4.40.0070.03316.41
5.4.30.0000.04016.39
5.4.20.0070.03016.55
5.4.10.0030.03316.43
5.4.00.0030.03715.87
5.3.290.0030.07714.73
5.3.280.0070.06714.81
5.3.270.0170.06714.65
5.3.260.0070.05314.63
5.3.250.0070.04014.68
5.3.240.0100.08314.56
5.3.230.0100.05014.67
5.3.220.0100.03014.38
5.3.210.0000.04014.61
5.3.200.0100.03714.41
5.3.190.0000.04014.56
5.3.180.0070.07314.55
5.3.170.0030.07714.52
5.3.160.0100.03714.77
5.3.150.0000.04014.53
5.3.140.0300.02014.63
5.3.130.0100.03014.57
5.3.120.0000.04014.61
5.3.110.0000.04014.61
5.3.100.0030.03714.09
5.3.90.0000.03714.08
5.3.80.0030.03714.21
5.3.70.0030.03314.04
5.3.60.0070.03013.89
5.3.50.0000.03713.95
5.3.40.0070.03014.00
5.3.30.0030.04313.90
5.3.20.0000.03713.71
5.3.10.0070.03013.68
5.3.00.0030.03313.63
5.2.170.0000.03011.14
5.2.160.0030.02711.20
5.2.150.0030.03011.18
5.2.140.0000.03011.13
5.2.130.0030.02711.09
5.2.120.0130.01710.95
5.2.110.0000.03011.07
5.2.100.0000.03010.99
5.2.90.0030.02711.00
5.2.80.0030.02711.14
5.2.70.0000.03011.30
5.2.60.0030.03011.04
5.2.50.0000.03010.92
5.2.40.0000.03011.03
5.2.30.0070.02711.01
5.2.20.0030.03310.94
5.2.10.0000.03010.92
5.2.00.0030.02710.75
5.1.60.0000.0239.99
5.1.50.0000.03010.05
5.1.40.0070.0179.94
5.1.30.0000.03310.32
5.1.20.0070.02010.24
5.1.10.0000.02710.11
5.1.00.0070.02010.16
5.0.50.0000.0208.75
5.0.40.0000.0208.34
5.0.30.0000.0308.29
5.0.20.0030.0178.16
5.0.10.0000.0208.16
5.0.00.0030.0308.18
4.4.90.0000.0177.82
4.4.80.0000.0137.82
4.4.70.0000.0177.82
4.4.60.0030.0137.82
4.4.50.0000.0137.82
4.4.40.0000.0237.82
4.4.30.0000.0177.82
4.4.20.0000.0177.82
4.4.10.0000.0177.82
4.4.00.0000.0237.82
4.3.110.0000.0137.82
4.3.100.0000.0137.82
4.3.90.0000.0137.82
4.3.80.0030.0237.82
4.3.70.0000.0177.82
4.3.60.0000.0207.82
4.3.50.0000.0207.82
4.3.40.0000.0507.82
4.3.30.0030.0377.82
4.3.20.0030.0377.82
4.3.10.0030.0137.82
4.3.00.0000.0177.82

preferences:
48.87 ms | 401 KiB | 5 Q