3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct() { return new stdClass(); } } $x = new A(); echo get_class($x); echo get_class($x->__construct());

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.0180.00016.38
8.3.50.0050.01317.42
8.3.40.0110.00418.44
8.3.30.0120.00318.54
8.3.20.0080.00018.73
8.3.10.0080.00018.35
8.3.00.0050.00319.25
8.2.180.0180.00416.75
8.2.170.0100.01022.96
8.2.160.0120.00318.69
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0070.00019.54
8.2.110.0070.01120.52
8.2.100.0110.00017.72
8.2.90.0040.00419.25
8.2.80.0040.00717.97
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0000.00818.07
8.2.40.0040.00419.23
8.2.30.0060.00317.65
8.2.20.0000.01117.63
8.2.10.0020.00517.61
8.2.00.0050.00217.59
8.1.280.0000.01525.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00420.96
8.1.230.0110.00018.91
8.1.220.0050.00317.76
8.1.210.0030.00618.77
8.1.200.0060.00317.13
8.1.190.0020.00517.10
8.1.180.0040.00418.10
8.1.170.0030.00518.68
8.1.160.0000.00818.92
8.1.150.0030.00518.56
8.1.140.0040.00417.43
8.1.130.0030.00317.25
8.1.120.0040.00417.27
8.1.110.0040.00417.34
8.1.100.0000.00717.28
8.1.90.0000.00717.24
8.1.80.0030.00417.43
8.1.70.0000.00717.36
8.1.60.0000.00717.60
8.1.50.0000.00817.46
8.1.40.0040.00417.50
8.1.30.0030.00617.58
8.1.20.0030.00617.55
8.1.10.0040.00417.56
8.1.00.0000.00817.51
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.61
8.0.270.0040.00317.31
8.0.260.0000.00716.82
8.0.250.0030.00716.95
8.0.240.0000.00716.87
8.0.230.0030.00316.77
8.0.220.0060.00316.84
8.0.210.0000.00716.80
8.0.200.0060.00016.73
8.0.190.0080.00016.93
8.0.180.0030.00616.85
8.0.170.0050.00316.80
8.0.160.0070.00016.84
8.0.150.0040.00416.69
8.0.140.0040.00416.75
8.0.130.0040.00513.18
8.0.120.0030.00616.61
8.0.110.0040.00416.88
8.0.100.0050.00216.68
8.0.90.0000.00716.85
8.0.80.0090.01216.78
8.0.70.0000.00716.69
8.0.60.0000.00816.84
8.0.50.0040.00416.75
8.0.30.0100.01017.29
8.0.20.0100.01317.05
8.0.10.0000.00816.72
8.0.00.0100.00816.79
7.4.330.0000.00512.97
7.4.320.0000.00616.43
7.4.300.0000.00616.48
7.4.290.0000.01116.47
7.4.280.0000.00716.42
7.4.270.0040.00416.42
7.4.260.0000.00613.17
7.4.250.0060.00316.56
7.4.240.0040.00416.60
7.4.230.0040.00216.62
7.4.220.0130.00416.68
7.4.210.0030.01716.55
7.4.200.0070.00016.52
7.4.190.0030.00516.45
7.4.160.0100.00516.38
7.4.150.0120.00616.53
7.4.140.0120.00817.86
7.4.130.0180.00916.32
7.4.120.0160.00016.23
7.4.110.0090.00916.43
7.4.100.0090.00916.34
7.4.90.0130.00916.68
7.4.80.0070.01119.39
7.4.70.0100.00716.43
7.4.60.0050.01216.45
7.4.50.0030.00316.32
7.4.40.0070.00716.56
7.4.30.0090.00916.54
7.4.00.0070.00715.01
7.3.330.0000.00613.13
7.3.320.0040.00413.38
7.3.310.0040.00416.32
7.3.300.0000.00616.28
7.3.290.0070.01016.26
7.3.280.0170.00316.27
7.3.270.0110.01116.36
7.3.260.0170.00016.27
7.3.240.0100.00616.58
7.3.230.0120.01216.36
7.3.210.0130.00316.55
7.3.200.0060.01016.57
7.3.190.0060.01016.35
7.3.180.0120.00516.32
7.3.170.0070.01016.33
7.3.160.0090.00616.53
7.3.120.0030.01314.83
7.3.110.0080.00814.73
7.3.100.0070.00514.84
7.3.90.0100.00714.65
7.3.80.0020.01114.85
7.3.70.0030.00814.66
7.3.60.0070.00514.70
7.3.50.0040.00914.64
7.3.40.0030.00714.88
7.3.30.0090.00414.56
7.3.20.0070.00716.49
7.3.10.0050.00816.60
7.3.00.0080.00516.74
7.2.330.0170.00316.57
7.2.320.0060.01216.63
7.2.310.0070.01016.59
7.2.300.0060.01816.54
7.2.290.0070.01116.77
7.2.250.0070.01014.89
7.2.240.0090.00715.28
7.2.230.0050.01214.87
7.2.220.0030.01015.15
7.2.210.0040.00915.02
7.2.200.0070.00515.00
7.2.190.0060.00714.95
7.2.180.0060.00815.11
7.2.170.0060.00714.88
7.2.160.0070.00714.96
7.2.150.0000.01516.98
7.2.140.0040.01116.76
7.2.130.0040.01116.94
7.2.120.0040.01116.76
7.2.110.0070.00716.91
7.2.100.0140.00316.84
7.2.90.0060.00616.91
7.2.80.0070.00716.65
7.2.70.0060.01016.95
7.2.60.0100.00316.82
7.2.50.0000.01817.00
7.2.40.0070.01016.60
7.2.30.0030.01016.61
7.2.20.0000.01416.94
7.2.10.0120.00616.61
7.2.00.0060.01018.24
7.1.330.0040.00915.77
7.1.320.0060.00715.48
7.1.310.0080.00815.91
7.1.300.0020.01415.57
7.1.290.0000.01315.54
7.1.280.0030.00715.67
7.1.270.0050.00815.45
7.1.260.0080.00615.85
7.1.250.0000.01515.64
7.1.100.0040.01117.87
7.1.70.0060.00916.95
7.1.60.0180.00719.21
7.1.50.0210.01034.75
7.1.00.0070.06722.50
7.0.200.0070.00016.54
7.0.140.0030.07322.07
7.0.120.0030.03322.15
7.0.60.0030.04319.91
7.0.50.0070.06717.92
7.0.40.0030.04320.27
7.0.30.0200.05020.30
7.0.20.0130.05020.15
7.0.10.0200.09020.27
7.0.00.0070.08320.17
5.6.280.0000.07721.11
5.6.210.0130.06020.69
5.6.200.0130.06018.18
5.6.190.0170.07720.77
5.6.180.0230.05020.61
5.6.170.0300.06020.51
5.6.160.0100.08320.50
5.6.150.0070.03718.23
5.6.140.0000.05318.26
5.6.130.0030.04718.19
5.6.120.0000.04320.99
5.6.110.0170.07321.14
5.6.100.0130.08021.08
5.6.90.0100.08021.14
5.6.80.0030.08320.39
5.6.70.0300.07020.37
5.5.350.0200.05020.39
5.5.340.0100.05718.02
5.5.330.0200.06020.15
5.5.320.0470.04320.44
5.5.310.0270.06320.36
5.5.300.0070.07718.10
5.5.290.0070.08317.92
5.5.280.0030.04020.88
5.5.270.0030.04320.75
5.5.260.0030.06320.96
5.5.250.0200.06320.46
5.5.240.0070.07320.26
5.4.450.0130.07719.48
5.4.440.0070.05719.47
5.4.430.0070.04719.48
5.4.420.0130.07319.47
5.4.410.0030.04319.44
5.4.400.0030.07719.25
5.4.390.0070.04319.01
5.4.380.0030.04018.97
5.4.370.0070.04719.12
5.4.360.0030.05319.23
5.4.350.0030.04019.08
5.4.340.0070.03719.14
5.4.320.0070.07718.98
5.4.310.0130.06718.85
5.4.300.0100.07318.84
5.4.290.0070.07319.14
5.4.280.0070.07018.92
5.4.270.0030.08319.08
5.4.260.0030.06319.20
5.4.250.0070.04319.14
5.4.240.0100.03319.23
5.4.230.0070.05019.23
5.4.220.0070.05318.86
5.4.210.0070.07318.91
5.4.200.0030.07719.00
5.4.190.0070.07318.96
5.4.180.0030.04718.83
5.4.170.0000.04019.13
5.4.160.0070.04019.13
5.4.150.0000.04019.05
5.4.140.0000.04016.57
5.4.130.0030.03716.49
5.4.120.0070.03016.35
5.4.110.0030.03716.34
5.4.100.0000.03716.43
5.4.90.0000.03716.28
5.4.80.0000.03716.46
5.4.70.0030.03316.27
5.4.60.0070.03016.40
5.4.50.0030.04316.48
5.4.40.0030.03716.43
5.4.30.0100.02716.25
5.4.20.0030.03316.39
5.4.10.0070.03716.38
5.4.00.0000.03715.85
5.3.290.0070.06314.70
5.3.280.0100.07714.63
5.3.270.0100.03014.60
5.3.260.0030.04014.65
5.3.250.0030.03714.52
5.3.240.0000.03714.59
5.3.230.0070.03314.60
5.3.220.0000.04014.71
5.3.210.0030.03714.61
5.3.200.0000.04014.61
5.3.190.0030.03714.52
5.3.180.0070.03314.60
5.3.170.0070.04014.64
5.3.160.0000.03714.61
5.3.150.0100.03014.57
5.3.140.0000.04014.73
5.3.130.0030.03714.61
5.3.120.0030.03714.69
5.3.110.0030.03714.43
5.3.100.0070.03314.20
5.3.90.0030.04014.02
5.3.80.0200.03314.09
5.3.70.0030.03314.04
5.3.60.0000.03713.89
5.3.50.0000.04013.98
5.3.40.0000.03714.00
5.3.30.0030.03313.98
5.3.20.0030.03313.76
5.3.10.0070.03313.65
5.3.00.0030.04013.64
5.2.170.0030.02711.19
5.2.160.0030.03011.14
5.2.150.0000.03311.15
5.2.140.0030.02711.20
5.2.130.0030.02711.07
5.2.120.0070.02311.03
5.2.110.0030.03011.13
5.2.100.0030.02710.99
5.2.90.0070.02311.13
5.2.80.0000.03011.06
5.2.70.0000.03011.10
5.2.60.0030.03011.00
5.2.50.0030.02711.07
5.2.40.0000.03010.96
5.2.30.0000.03710.91
5.2.20.0000.06310.84
5.2.10.0000.03310.89
5.2.00.0000.05310.72
5.1.60.0030.04710.04
5.1.50.0070.0339.99
5.1.40.0000.0579.88
5.1.30.0000.03010.33
5.1.20.0030.04310.38
5.1.10.0100.04310.22
5.1.00.0130.03010.07
5.0.50.0070.0408.45
5.0.40.0000.0508.56
5.0.30.0070.0578.15
5.0.20.0030.0208.17
5.0.10.0000.0278.13
5.0.00.0070.0578.14
4.4.90.0000.0137.91
4.4.80.0000.0177.91
4.4.70.0070.0337.91
4.4.60.0070.0307.91
4.4.50.0100.0237.91
4.4.40.0030.0407.91
4.4.30.0000.0207.91
4.4.20.0000.0407.91
4.4.10.0070.0237.91
4.4.00.0030.0577.91
4.3.110.0030.0337.91
4.3.100.0070.0137.91
4.3.90.0000.0407.91
4.3.80.0070.0477.91
4.3.70.0100.0207.91
4.3.60.0000.0207.91
4.3.50.0030.0337.91
4.3.40.0030.0507.91
4.3.30.0070.0277.91
4.3.20.0000.0277.91
4.3.10.0030.0377.91
4.3.00.0000.0337.91

preferences:
48.51 ms | 401 KiB | 5 Q