3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { 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.40.0040.01118.79
8.3.30.0090.00618.57
8.3.20.0050.00318.65
8.3.10.0080.00018.82
8.3.00.0060.00319.13
8.2.170.0090.00622.96
8.2.160.0110.00418.80
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.77
8.2.110.0050.00519.18
8.2.100.0040.00717.78
8.2.90.0000.00719.05
8.2.80.0020.00517.97
8.2.70.0040.00417.50
8.2.60.0030.00517.68
8.2.50.0000.00818.07
8.2.40.0060.00318.09
8.2.30.0050.00319.44
8.2.20.0060.00317.66
8.2.10.0040.00419.39
8.2.00.0070.00417.66
8.1.270.0030.00623.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0150.00020.66
8.1.230.0040.00721.08
8.1.220.0040.00418.77
8.1.210.0070.00318.91
8.1.200.0090.00017.23
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0040.00418.86
8.1.150.0000.00718.58
8.1.140.0000.00717.38
8.1.130.0070.00017.34
8.1.120.0070.00017.32
8.1.110.0040.00417.38
8.1.100.0070.00017.38
8.1.90.0030.00317.41
8.1.80.0050.00317.37
8.1.70.0000.00717.35
8.1.60.0030.00617.48
8.1.50.0000.00717.32
8.1.40.0050.00317.51
8.1.30.0040.00417.63
8.1.20.0000.01017.60
8.1.10.0000.00717.59
8.1.00.0040.00417.32
8.0.300.0080.00019.75
8.0.290.0040.00417.04
8.0.280.0000.00818.35
8.0.270.0030.00316.79
8.0.260.0030.00316.79
8.0.250.0030.00716.78
8.0.240.0030.00516.82
8.0.230.0070.00016.92
8.0.220.0040.00416.70
8.0.210.0000.00716.86
8.0.200.0060.00316.75
8.0.190.0000.00716.92
8.0.180.0040.00416.88
8.0.170.0060.00316.75
8.0.160.0040.00416.92
8.0.150.0030.00616.80
8.0.140.0000.00716.68
8.0.130.0030.00313.21
8.0.120.0040.00416.67
8.0.110.0000.00716.82
8.0.100.0040.00416.80
8.0.90.0040.00416.64
8.0.80.0040.01116.73
8.0.70.0000.00716.69
8.0.60.0030.00516.75
8.0.50.0000.00716.91
8.0.30.0160.00316.79
8.0.20.0120.00716.97
8.0.10.0000.00717.01
8.0.00.0120.00716.75
7.4.330.0050.00012.87
7.4.320.0000.00616.55
7.4.300.0030.00316.56
7.4.290.0040.00416.44
7.4.280.0000.00816.46
7.4.270.0030.00316.48
7.4.260.0050.00013.30
7.4.250.0000.00716.38
7.4.240.0000.00716.64
7.4.230.0000.00816.40
7.4.220.0060.01216.64
7.4.210.0100.01016.63
7.4.200.0030.00316.29
7.4.190.0040.00416.37
7.4.160.0090.00616.54
7.4.150.0100.00716.41
7.4.140.0090.00917.86
7.4.130.0130.00616.46
7.4.120.0090.00916.56
7.4.110.0000.01816.65
7.4.100.0170.00016.45
7.4.90.0030.02016.38
7.4.80.0150.00619.39
7.4.70.0100.00716.48
7.4.60.0140.00316.43
7.4.50.0030.00516.57
7.4.40.0040.01516.38
7.4.30.0130.00916.34
7.4.00.0070.00715.01
7.3.330.0020.00513.11
7.3.320.0060.00013.14
7.3.310.0000.00816.12
7.3.300.0060.00016.21
7.3.290.0090.00516.30
7.3.280.0100.00716.30
7.3.270.0100.00716.32
7.3.260.0150.00316.36
7.3.240.0080.00816.52
7.3.230.0070.01016.31
7.3.210.0030.01316.29
7.3.200.0120.00316.27
7.3.190.0070.01416.61
7.3.180.0120.00316.32
7.3.170.0040.01216.42
7.3.160.0120.00416.43
7.3.120.0030.01414.90
7.2.330.0000.01816.67
7.2.320.0070.01016.82
7.2.310.0080.00816.41
7.2.300.0140.00816.29
7.2.290.0030.01416.75
7.2.00.0030.00918.98
7.1.100.0040.00818.10
7.1.70.0050.00317.11
7.1.60.0050.00819.21
7.1.50.0100.01316.98
7.1.00.0030.06722.54
7.0.200.0030.00616.81
7.0.140.0000.07022.00
7.0.120.0030.07322.14
7.0.60.0100.07720.01
7.0.50.0030.08717.90
7.0.40.0070.09020.10
7.0.30.0630.05320.07
7.0.20.0230.05320.19
7.0.10.0300.07320.16
7.0.00.0070.08320.09
5.6.280.0100.06720.88
5.6.210.0100.08020.52
5.6.200.0070.07018.23
5.6.190.0100.08320.64
5.6.180.0230.03720.34
5.6.170.0230.04320.47
5.6.160.0030.04020.61
5.6.150.0000.08718.29
5.6.140.0030.07718.15
5.6.130.0200.05318.18
5.6.120.0100.06321.02
5.6.110.0100.07321.14
5.6.100.0170.07321.01
5.6.90.0170.06321.00
5.6.80.0130.07020.44
5.6.70.4600.03020.39
5.5.350.0230.07320.49
5.5.340.0070.04317.93
5.5.330.0070.08320.25
5.5.320.0200.04320.32
5.5.310.0200.03720.37
5.5.300.0070.08717.98
5.5.290.0100.07718.07
5.5.280.0000.06320.89
5.5.270.0130.07020.79
5.5.260.0070.06020.84
5.5.250.0100.05020.46
5.5.240.0070.08320.27
5.4.450.0370.05719.54
5.4.440.3730.04319.57
5.4.430.0170.04719.43
5.4.420.0100.05319.55
5.4.410.0000.06319.35
5.4.400.0070.05319.39
5.4.390.0100.05019.13
5.4.380.0130.05318.59
5.4.370.0070.04718.61
5.4.360.0070.03718.65
5.4.350.0060.03412.02
5.4.340.0050.04112.02
5.4.320.0090.04812.50
5.4.310.0060.03712.49
5.4.300.0060.04812.50
5.4.290.0090.04912.50
5.4.280.0120.04612.39
5.4.270.0090.05112.39
5.4.260.0100.05112.39
5.4.250.0100.05512.39
5.4.240.0080.05012.39
5.4.230.0120.05212.39
5.4.220.0100.04612.39
5.4.210.0090.04712.39
5.4.200.0100.05012.39
5.4.190.0100.04912.38
5.4.180.0070.04912.39
5.4.170.0140.06412.39
5.4.160.0070.04512.39
5.4.150.0100.04612.39
5.4.140.0120.06012.07
5.4.130.0110.05612.06
5.4.120.0130.07412.01
5.4.110.0100.06012.01
5.4.100.0050.04412.01
5.4.90.0080.04512.01
5.4.80.0090.04112.01
5.4.70.0070.04312.01
5.4.60.0080.04912.01
5.4.50.0090.04712.01
5.4.40.0070.04812.00
5.4.30.0090.04611.99
5.4.20.0080.05112.00
5.4.10.0100.05611.99
5.4.00.0140.06411.48
5.3.290.0110.04012.80
5.3.280.0110.04412.71
5.3.270.0130.06812.73
5.3.260.0080.05712.72
5.3.250.0100.05412.72
5.3.240.0070.05012.72
5.3.230.0090.04712.71
5.3.220.0100.05012.68
5.3.210.0080.06112.68
5.3.200.0110.04612.68
5.3.190.0110.05012.68
5.3.180.0180.07112.67
5.3.170.0090.06012.67
5.3.160.0140.06612.67
5.3.150.0130.06912.67
5.3.140.0120.06212.66
5.3.130.0100.05312.66
5.3.120.0110.04712.66
5.3.110.0100.04712.66
5.3.100.0090.04412.12
5.3.90.0080.05112.09
5.3.80.0070.04612.09
5.3.70.0080.04612.09
5.3.60.0100.04712.07
5.3.50.0090.04312.02
5.3.40.0090.04512.02

preferences:
50.16 ms | 400 KiB | 5 Q