3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X{ function test(){ return new class(){ private function __construct(){} }; } } $x = new X; var_dump($c = $x->test()); $class = get_class($c); new $class;

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.0130.00916.88
8.3.50.0070.01117.80
8.3.40.0100.00318.97
8.3.30.0040.01118.71
8.3.20.0000.00820.22
8.3.10.0080.00023.68
8.3.00.0040.00419.38
8.2.180.0160.00016.38
8.2.170.0110.00322.96
8.2.160.0070.00722.16
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0030.00617.38
8.2.120.0000.00826.35
8.2.110.0060.00320.39
8.2.100.0040.00717.91
8.2.90.0040.00419.02
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0050.00319.19
8.2.30.0000.00820.52
8.2.20.0090.00017.79
8.2.10.0050.00318.16
8.2.00.0060.00318.10
8.1.280.0040.01125.92
8.1.270.0080.00023.76
8.1.260.0000.00728.09
8.1.250.0030.00528.09
8.1.240.0030.00723.90
8.1.230.0040.00817.64
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0000.00817.35
8.1.190.0090.00017.00
8.1.180.0000.00718.10
8.1.170.0040.00418.55
8.1.160.0000.00721.91
8.1.150.0040.00418.88
8.1.140.0050.00319.47
8.1.130.0070.00017.68
8.1.120.0040.00417.50
8.1.110.0000.00717.41
8.1.100.0000.00717.41
8.1.90.0050.00217.45
8.1.80.0000.00717.42
8.1.70.0030.00317.44
8.1.60.0050.00317.49
8.1.50.0060.00317.55
8.1.40.0000.00917.47
8.1.30.0000.00917.63
8.1.20.0040.00417.60
8.1.10.0000.00717.58
8.1.00.0040.00417.54
8.0.300.0070.00018.77
8.0.290.0000.00816.88
8.0.280.0000.00718.45
8.0.270.0000.00717.24
8.0.260.0030.00317.25
8.0.250.0040.00416.99
8.0.240.0000.00817.03
8.0.230.0000.00616.92
8.0.220.0070.00016.88
8.0.210.0040.00216.88
8.0.200.0030.00316.91
8.0.190.0050.00316.88
8.0.180.0040.00416.94
8.0.170.0000.00816.96
8.0.160.0090.00016.93
8.0.150.0000.00716.89
8.0.140.0030.00616.88
8.0.130.0000.00513.36
8.0.120.0040.00416.90
8.0.110.0000.00716.88
8.0.100.0000.00716.89
8.0.90.0030.00316.75
8.0.80.0150.00016.89
8.0.70.0050.00216.81
8.0.60.0000.00817.01
8.0.50.0000.00816.83
8.0.30.0120.00417.27
8.0.20.0110.00817.40
8.0.10.0040.00416.96
8.0.00.0120.00716.70
7.4.330.0000.00615.09
7.4.320.0030.00316.50
7.4.300.0000.00716.57
7.4.290.0070.00016.40
7.4.280.0100.00016.57
7.4.270.0070.00016.64
7.4.260.0080.00016.54
7.4.250.0000.00716.47
7.4.240.0030.00516.44
7.4.230.0030.00316.60
7.4.220.0060.01516.70
7.4.210.0100.00516.49
7.4.200.0030.00516.57
7.4.160.0100.00616.65
7.4.150.0210.00017.40
7.4.140.0110.01217.86
7.4.130.0070.01016.44
7.4.120.0100.01016.44
7.4.110.0130.01016.48
7.4.100.0090.01216.46
7.4.90.0100.01316.45
7.4.80.0100.01319.39
7.4.70.0070.01416.49
7.4.60.0060.00916.59
7.4.50.0080.00316.57
7.4.40.0100.00716.53
7.4.30.0070.01416.67
7.4.00.0060.00615.03
7.3.330.0000.00613.19
7.3.320.0050.00013.18
7.3.310.0070.00016.45
7.3.300.0040.00416.40
7.3.290.0090.00516.36
7.3.280.0080.01016.37
7.3.270.0030.01317.40
7.3.260.0130.00516.39
7.3.250.0100.00716.60
7.3.240.0120.00716.50
7.3.230.0170.00316.54
7.3.210.0100.00716.41
7.3.200.0060.01216.57
7.3.190.0110.00716.33
7.3.180.0060.01016.47
7.3.170.0070.01016.59
7.3.160.0090.00616.36
7.2.330.0090.00916.38
7.2.320.0120.00616.77
7.2.310.0030.01416.45
7.2.300.0100.01316.58
7.2.290.0130.00616.72
7.2.60.0070.00716.98
7.2.00.0000.01519.38
7.1.200.0040.00815.26
7.1.100.0030.00917.70
7.1.70.0000.00717.01
7.1.60.0140.01019.48
7.1.50.0100.01416.86
7.1.00.0030.07722.54
7.0.200.0330.00414.50
7.0.60.0100.08020.00
7.0.50.0070.04317.90
7.0.40.0170.06320.13
7.0.30.0070.08720.31
7.0.20.0270.08020.26
7.0.10.0000.04720.08
7.0.00.0100.05020.03
5.6.280.0100.02320.82
5.6.210.0000.04320.53
5.6.200.0000.07718.29
5.6.190.0100.07020.63
5.6.180.0300.04720.58
5.6.170.0230.05720.71
5.6.160.0130.07720.43
5.6.150.0100.08018.16
5.6.140.0100.07718.21
5.6.130.0030.05318.18
5.6.120.0230.07020.97
5.6.110.0070.03721.00
5.6.100.0100.07720.98
5.6.90.0100.05321.00
5.6.80.0070.08020.51
5.5.350.3730.04020.39
5.5.340.0030.04018.02
5.5.330.0100.08020.25
5.5.320.0470.05720.42
5.5.310.0300.04720.34
5.5.300.0000.04017.95
5.5.290.0030.04017.95
5.5.280.0030.08320.77
5.5.270.0030.05320.64
5.5.260.0070.06720.77
5.5.250.0100.08020.58
5.5.240.0370.07320.24

preferences:
43.8 ms | 400 KiB | 5 Q