3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __construct($b) { if($b) return new B(); } } class B{ public function __construct() { echo 'buidling B'; } } $c = new A(true); var_dump($c);

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.70.0150.00016.13
8.3.60.0160.00018.42
8.3.50.0120.00721.02
8.3.40.0140.00318.63
8.3.30.0100.00718.68
8.3.20.0090.00620.30
8.3.10.0000.00721.73
8.3.00.0040.00419.56
8.2.190.0110.00716.58
8.2.180.0060.01616.34
8.2.170.0100.00322.96
8.2.160.0100.00320.35
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00417.61
8.2.110.0060.00622.25
8.2.100.0080.00417.50
8.2.90.0040.00419.23
8.2.80.0070.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00617.93
8.2.50.0090.00018.07
8.2.40.0090.00021.13
8.2.30.0060.00319.78
8.2.20.0040.00417.69
8.2.10.0000.00717.93
8.2.00.0000.00717.91
8.1.280.0070.00725.92
8.1.270.0000.00820.25
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00422.42
8.1.230.0070.00417.42
8.1.220.0100.00017.74
8.1.210.0030.00518.77
8.1.200.0060.00417.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.65
8.1.160.0070.00022.04
8.1.150.0050.00318.82
8.1.140.0050.00317.26
8.1.130.0070.00017.64
8.1.120.0000.00817.41
8.1.110.0060.00317.36
8.1.100.0030.00317.38
8.1.90.0070.00017.38
8.1.80.0060.00317.38
8.1.70.0000.00717.36
8.1.60.0000.00817.59
8.1.50.0040.00417.48
8.1.40.0000.00817.50
8.1.30.0050.00317.58
8.1.20.0050.00317.66
8.1.10.0040.00417.63
8.1.00.0040.00417.47
8.0.300.0050.00218.77
8.0.290.0000.00716.63
8.0.280.0000.00818.43
8.0.270.0030.00317.26
8.0.260.0000.00917.25
8.0.250.0000.00716.79
8.0.240.0030.00316.91
8.0.230.0030.00316.84
8.0.220.0000.00716.83
8.0.210.0040.00416.73
8.0.200.0040.00416.75
8.0.190.0040.00416.82
8.0.180.0040.00416.90
8.0.170.0040.00416.77
8.0.160.0000.00816.87
8.0.150.0030.00316.73
8.0.140.0050.00316.79
8.0.130.0000.00713.34
8.0.120.0030.00616.70
8.0.110.0000.00716.88
8.0.100.0040.00416.87
8.0.90.0000.00716.63
8.0.80.0090.01216.82
8.0.70.0050.00216.89
8.0.60.0070.00016.80
8.0.50.0030.00516.85
8.0.30.0100.00916.97
8.0.20.0030.01617.40
8.0.10.0050.00217.02
8.0.00.0070.01116.88
7.4.330.0030.00315.08
7.4.320.0030.00316.54
7.4.300.0040.00416.57
7.4.290.0000.00716.61
7.4.280.0040.00416.50
7.4.270.0030.00316.61
7.4.260.0000.00716.58
7.4.250.0080.00016.61
7.4.240.0030.00316.56
7.4.230.0070.00016.62
7.4.220.0090.01516.67
7.4.210.0040.01416.63
7.4.200.0070.00016.51
7.4.160.0070.01116.35
7.4.150.0150.00917.40
7.4.140.0060.01417.86
7.4.130.0100.00716.53
7.4.120.0090.01116.54
7.4.110.0070.01016.39
7.4.100.0030.01716.39
7.4.90.0130.00916.36
7.4.80.0060.01419.39
7.4.70.0060.01116.75
7.4.60.0120.00516.48
7.4.50.0040.00416.43
7.4.40.0040.01316.32
7.4.30.0110.01116.45
7.4.00.0100.00714.97
7.3.330.0000.00613.04
7.3.320.0030.00313.26
7.3.310.0020.00516.24
7.3.300.0030.00316.28
7.3.290.0080.00816.24
7.3.280.0100.00616.25
7.3.270.0130.00317.40
7.3.260.0070.01016.29
7.3.250.0070.01216.42
7.3.240.0070.01016.50
7.3.230.0110.00516.39
7.3.210.0100.01016.54
7.3.200.0150.00819.39
7.3.190.0040.01316.49
7.3.180.0120.00316.30
7.3.170.0030.01316.27
7.3.160.0100.00616.36
7.3.120.0040.01414.75
7.3.110.0040.01114.65
7.3.100.0040.01115.02
7.3.90.0030.00914.73
7.3.80.0070.00714.72
7.3.70.0030.01014.42
7.3.60.0080.00414.71
7.3.50.0090.00614.82
7.3.40.0030.01214.70
7.3.30.0060.00914.70
7.3.20.0110.00316.69
7.3.10.0050.01116.54
7.3.00.0020.00916.49
7.2.330.0090.00916.67
7.2.320.0030.01416.62
7.2.310.0100.00716.68
7.2.300.0130.00316.61
7.2.290.0100.01416.45
7.2.240.0100.00614.94
7.2.230.0030.01415.14
7.2.220.0030.01614.68
7.2.210.0070.01015.04
7.2.200.0090.00614.90
7.2.190.0080.00814.56
7.2.180.0090.00614.67
7.2.170.0100.00314.89
7.2.160.0000.01715.01
7.2.150.0060.00316.80
7.2.140.0070.01016.91
7.2.130.0060.00616.82
7.2.120.0060.00316.82
7.2.110.0060.00616.82
7.2.100.0070.00816.78
7.2.90.0110.00316.80
7.2.80.0030.01016.86
7.2.70.0050.00716.88
7.2.60.0070.00416.88
7.2.50.0050.00916.81
7.2.40.0070.00316.80
7.2.30.0050.01116.90
7.2.20.0090.00316.84
7.2.10.0060.00616.76
7.2.00.0010.01217.57
7.1.330.0060.00915.50
7.1.320.0110.00415.52
7.1.310.0030.00715.95
7.1.300.0030.01015.93
7.1.290.0090.00015.88
7.1.280.0030.00715.90
7.1.270.0070.00715.96
7.1.260.0060.00615.77
7.1.250.0090.00315.72
7.1.200.0030.01015.78
7.1.100.0030.01018.13
7.1.70.0030.00517.34
7.1.60.0070.01420.03
7.1.50.0070.01417.09
7.1.00.0070.06722.45
7.0.200.0000.00716.82
7.0.60.0100.06319.90
7.0.50.0070.08017.97
7.0.40.0130.07020.14
7.0.30.0400.06720.37
7.0.20.0330.04720.09
7.0.10.0300.04320.08
7.0.00.0100.07320.22
5.6.280.0030.06021.11
5.6.210.0130.07020.73
5.6.200.0130.05018.17
5.6.190.0030.09720.39
5.6.180.0330.04020.64
5.6.170.0230.05320.49
5.6.160.0000.04720.55
5.6.150.0100.07318.27
5.6.140.0030.06018.21
5.6.130.0070.05018.29
5.6.120.0100.08021.05
5.6.110.0130.07320.99
5.6.100.0000.04721.11
5.6.90.0100.08021.02
5.6.80.0070.04020.43
5.6.70.0400.06320.50
5.5.350.0030.06320.35
5.5.340.0070.07718.03
5.5.330.0030.04020.59
5.5.320.0300.07320.28
5.5.310.0200.03720.27
5.5.300.0170.06017.97
5.5.290.0030.04317.98
5.5.280.0230.07020.74
5.5.270.0100.04720.87
5.5.260.0000.05320.96
5.5.250.0000.05320.56
5.5.240.0030.08020.16
5.4.450.0230.05019.54
5.4.440.0230.07319.30
5.4.430.0300.04019.14
5.4.420.0200.05019.47
5.4.410.0000.06719.53
5.4.400.0170.05019.03
5.4.390.0270.04719.30
5.4.380.0100.05719.22
5.4.370.0270.04019.02
5.4.360.0170.05319.26
5.4.350.0170.05019.22
5.4.340.0200.05019.30
5.4.320.0300.05019.20
5.4.310.0130.05319.30
5.4.300.0130.05318.98
5.4.290.0200.04719.13
5.4.280.0170.05718.96
5.4.270.0130.05319.25
5.4.260.0130.05319.19
5.4.250.0130.05319.25
5.4.240.0230.04719.23
5.4.230.0230.06319.33
5.4.220.0170.05319.10
5.4.210.0170.05319.15
5.4.200.0170.04716.93
5.4.190.0200.05019.28
5.4.180.0170.05018.86
5.4.170.0170.06719.16
5.4.160.0070.06018.96
5.4.150.0270.04319.17
5.4.140.0170.05016.46
5.4.130.0100.06016.35
5.4.120.0170.04716.53
5.4.110.0130.05016.52
5.4.100.0300.03716.42
5.4.90.0130.05316.48
5.4.80.0100.05316.43
5.4.70.0230.04716.34
5.4.60.0200.05716.32
5.4.50.0100.05316.27
5.4.40.0130.05016.31
5.4.30.0130.05016.69
5.4.20.0100.05316.31
5.4.10.0130.05016.39
5.4.00.0170.06716.17

preferences:
50.02 ms | 401 KiB | 5 Q