3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public function __construct() { return $this; } } class init { public function __construct(test $test) { $this->test = $test; } } $init = new init(new test()); var_dump($init);

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.01118.56
8.3.50.0070.01422.10
8.3.40.0070.00718.96
8.3.30.0060.00919.04
8.3.20.0040.00420.07
8.3.10.0080.00023.66
8.3.00.0050.00319.25
8.2.180.0210.00018.29
8.2.170.0100.00322.96
8.2.160.0100.00320.38
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0130.00626.16
8.2.120.0040.00422.29
8.2.110.0040.00420.58
8.2.100.0060.00618.09
8.2.90.0000.00719.09
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.92
8.2.50.0060.00318.07
8.2.40.0030.00519.95
8.2.30.0040.00417.87
8.2.20.0050.00217.52
8.2.10.0000.00817.97
8.2.00.0000.00717.60
8.1.280.0090.00625.92
8.1.270.0050.00322.02
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00923.75
8.1.230.0090.00319.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0000.00721.90
8.1.150.0040.00418.73
8.1.140.0080.00017.32
8.1.130.0030.00317.87
8.1.120.0000.00817.45
8.1.110.0080.00017.39
8.1.100.0030.00317.34
8.1.90.0000.00817.43
8.1.80.0000.00717.41
8.1.70.0030.00317.35
8.1.60.0060.00317.58
8.1.50.0080.00017.52
8.1.40.0080.00017.51
8.1.30.0040.00417.51
8.1.20.0060.00317.59
8.1.10.0040.00417.44
8.1.00.0050.00517.45
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0050.00318.32
8.0.270.0030.00517.10
8.0.260.0060.00017.18
8.0.250.0050.00316.99
8.0.240.0050.00316.95
8.0.230.0000.00816.88
8.0.220.0050.00316.89
8.0.210.0040.00416.85
8.0.200.0030.00316.96
8.0.190.0090.00316.86
8.0.180.0000.00716.90
8.0.170.0050.00316.80
8.0.160.0000.00716.91
8.0.150.0000.00716.83
8.0.140.0030.00416.74
8.0.130.0030.00313.28
8.0.120.0040.00416.73
8.0.110.0040.00416.91
8.0.100.0000.00816.79
8.0.90.0070.00016.76
8.0.80.0160.00016.87
8.0.70.0040.00416.91
8.0.60.0000.00716.93
8.0.50.0000.00816.77
8.0.30.0120.00917.28
8.0.20.0130.00917.40
8.0.10.0000.00817.02
8.0.00.0140.00516.71
7.4.330.0000.00515.00
7.4.320.0060.00016.57
7.4.300.0030.00316.49
7.4.290.0000.00716.60
7.4.280.0040.00416.62
7.4.270.0000.00716.50
7.4.260.0070.00016.56
7.4.250.0040.00416.54
7.4.240.0020.00616.49
7.4.230.0040.00416.58
7.4.220.0030.01416.71
7.4.210.0060.00916.64
7.4.200.0050.00216.58
7.4.160.0090.00616.34
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0080.00816.49
7.4.120.0030.01516.48
7.4.110.0080.00816.35
7.4.100.0100.01016.53
7.4.90.0100.00716.32
7.4.80.0160.00619.39
7.4.70.0080.00816.39
7.4.60.0130.00316.41
7.4.50.0040.00416.60
7.4.40.0120.00816.49
7.4.30.0040.01216.45
7.4.00.0070.01014.98
7.3.330.0000.00513.22
7.3.320.0000.00513.21
7.3.310.0000.00716.07
7.3.300.0000.00616.10
7.3.290.0200.00016.25
7.3.280.0090.00816.21
7.3.270.0090.00917.40
7.3.260.0090.01216.20
7.3.250.0070.01016.47
7.3.240.0070.01016.27
7.3.230.0100.01016.52
7.3.210.0100.01016.32
7.3.200.0000.01819.39
7.3.190.0080.00816.23
7.3.180.0120.00416.24
7.3.170.0070.01016.27
7.3.160.0080.00816.33
7.2.330.0090.00916.65
7.2.320.0100.00516.44
7.2.310.0110.00716.68
7.2.300.0150.00616.70
7.2.290.0080.00816.42
7.1.70.0040.00417.23
7.1.60.0090.01519.32
7.1.50.0090.01216.77
7.1.00.0070.07322.30
7.0.200.0030.00316.70
7.0.140.0000.07721.97
7.0.60.0130.07320.08
7.0.50.0070.04017.88
7.0.40.0070.04320.13
7.0.30.0270.07020.30
7.0.20.0270.06720.24
7.0.10.0030.07720.22
7.0.00.0030.04720.23
5.6.280.0000.07721.04
5.6.210.0200.07020.47
5.6.200.0170.04718.25
5.6.190.0070.04320.39
5.6.180.0300.07720.43
5.6.170.0200.06720.47
5.6.160.0070.04020.70
5.6.150.0070.07718.15
5.6.140.0130.04018.21
5.6.130.0030.08318.18
5.6.120.0070.04021.13
5.6.110.0100.08020.98
5.6.100.0030.08021.02
5.6.90.0100.08321.01
5.6.80.0130.06720.49
5.5.350.2870.04020.41
5.5.340.0070.04017.95
5.5.330.0130.05020.47
5.5.320.0170.04720.24
5.5.310.0200.05720.36
5.5.300.0100.07717.94
5.5.290.0070.08017.92
5.5.280.0130.05020.74
5.5.270.0070.07720.87
5.5.260.0170.04720.80
5.5.250.0070.03720.80
5.5.240.0000.03320.26
5.4.450.1000.04319.16
5.4.440.0800.06019.48
5.4.430.1000.05719.19
5.4.420.0630.00019.21
5.4.410.0930.00019.52
5.4.400.0600.00019.34
5.4.390.0630.00018.98
5.4.380.0630.00019.03
5.4.370.0630.00019.04
5.4.360.0600.00018.98
5.4.350.0770.00019.03
5.4.340.0100.03212.01
5.4.320.0100.03312.50
5.4.310.0060.03812.50
5.4.300.0070.03612.50
5.4.290.0070.03612.50
5.4.280.0050.03612.39
5.4.270.0070.03512.39
5.4.260.0050.03812.40
5.4.250.0090.03412.40
5.4.240.0050.03912.39
5.4.230.0060.03812.39
5.4.220.0070.03512.39
5.4.210.0060.03512.39
5.4.200.0050.04012.38
5.4.190.0070.04112.39
5.4.180.0050.03712.39
5.4.170.0040.03812.39
5.4.160.0070.03512.39
5.4.150.0100.03312.38
5.4.140.0070.03712.07
5.4.130.0070.03412.06
5.4.120.0050.03612.02
5.4.110.0060.03512.02
5.4.100.0050.03512.02
5.4.90.0050.03712.01
5.4.80.0050.03712.01
5.4.70.0060.03312.01
5.4.60.0040.03612.01
5.4.50.0050.03612.01
5.4.40.0070.03412.00
5.4.30.0060.03511.99
5.4.20.0070.03611.99
5.4.10.0040.03712.00
5.4.00.0030.03911.48
5.3.290.0070.04112.80
5.3.280.0060.03712.71
5.3.270.0050.04012.72
5.3.260.0040.04112.72
5.3.250.0060.03712.72
5.3.240.0080.03412.72
5.3.230.0070.03712.71
5.3.220.0050.04412.68
5.3.210.0060.03912.68
5.3.200.0030.03912.68
5.3.190.0050.03812.68
5.3.180.0070.03512.68
5.3.170.0080.03412.67
5.3.160.0110.03112.67
5.3.150.0040.03912.68
5.3.140.0070.03912.66
5.3.130.0080.03812.66
5.3.120.0070.03712.66
5.3.110.0050.03912.66
5.3.100.0080.04212.12
5.3.90.0050.03912.11
5.3.80.0060.03712.10
5.3.70.0030.04212.10
5.3.60.0030.03712.08
5.3.50.0050.03512.03
5.3.40.0040.03912.03
5.3.30.0070.03511.98
5.3.20.0030.04211.77
5.3.10.0060.03511.73
5.3.00.0060.03711.72
5.2.170.0050.0349.22
5.2.160.0030.0329.23
5.2.150.0060.0409.22
5.2.140.0050.0309.22
5.2.130.0050.0349.18
5.2.120.0030.0339.18
5.2.110.0060.0319.19
5.2.100.0050.0359.18
5.2.90.0050.0379.18
5.2.80.0020.0359.18
5.2.70.0040.0319.17
5.2.60.0040.0309.13
5.2.50.0040.0319.10
5.2.40.0060.0279.08
5.2.30.0060.0339.05
5.2.20.0060.0369.04
5.2.10.0030.0298.95
5.2.00.0080.0308.80
5.1.60.0040.0268.09
5.1.50.0070.0228.09
5.1.40.0040.0248.06
5.1.30.0050.0258.42
5.1.20.0050.0268.44
5.1.10.0030.0278.17
5.1.00.0030.0278.17
5.0.50.0020.0226.64
5.0.40.0040.0196.50
5.0.30.0050.0326.32
5.0.20.0040.0186.28
5.0.10.0030.0206.26
5.0.00.0040.0336.25
4.4.90.0010.0174.78
4.4.80.0020.0154.75
4.4.70.0000.0184.75
4.4.60.0020.0174.76
4.4.50.0030.0154.77
4.4.40.0010.0274.71
4.4.30.0040.0144.76
4.4.20.0070.0114.85
4.4.10.0000.0184.85
4.4.00.0030.0264.75
4.3.110.0040.0144.67
4.3.100.0040.0144.66
4.3.90.0030.0144.64
4.3.80.0030.0234.59
4.3.70.0020.0154.63
4.3.60.0040.0214.63
4.3.50.0010.0184.62
4.3.40.0060.0224.54
4.3.30.0010.0183.30
4.3.20.0020.0153.28
4.3.10.0040.0233.24
4.3.00.0030.0207.21

preferences:
45.28 ms | 401 KiB | 5 Q