3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* class myClass{ public function __construct($i){ echo $i; } } $inst = new myClass('testing'); */ $inst = new class('testing'){ public function __construct($i){ return $i; } }; echo $inst;

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.0140.00318.42
8.3.50.0130.01016.63
8.3.40.0090.00918.91
8.3.30.0110.00318.67
8.3.20.0090.00020.18
8.3.10.0030.00621.63
8.3.00.0000.00720.21
8.2.180.0140.00018.67
8.2.170.0100.00722.96
8.2.160.0100.00320.50
8.2.150.0050.00324.18
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0000.01021.00
8.2.100.0040.00718.04
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0000.00817.50
8.2.60.0000.01218.04
8.2.50.0090.00018.07
8.2.40.0040.00419.34
8.2.30.0030.00320.67
8.2.20.0030.00617.84
8.2.10.0000.00717.97
8.2.00.0000.00717.93
8.1.280.0120.00925.92
8.1.270.0040.00423.82
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0100.00023.97
8.1.230.0060.00620.83
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0000.00818.27
8.1.160.0040.00421.88
8.1.150.0040.00418.86
8.1.140.0050.00317.39
8.1.130.0000.00717.67
8.1.120.0040.00417.44
8.1.110.0050.00317.34
8.1.100.0080.00017.46
8.1.90.0050.00317.45
8.1.80.0040.00417.42
8.1.70.0040.00417.41
8.1.60.0050.00317.47
8.1.50.0050.00317.47
8.1.40.0030.00517.41
8.1.30.0080.00017.66
8.1.20.0040.00417.46
8.1.10.0000.00717.46
8.1.00.0020.00517.39
8.0.300.0000.01018.77
8.0.290.0070.00016.75
8.0.280.0050.00318.34
8.0.270.0000.00817.16
8.0.260.0060.00017.26
8.0.250.0040.00416.98
8.0.240.0030.00616.90
8.0.230.0030.00316.99
8.0.220.0070.00016.97
8.0.210.0040.00416.86
8.0.200.0000.00816.88
8.0.190.0000.00716.90
8.0.180.0000.00716.86
8.0.170.0000.00816.93
8.0.160.0000.00816.94
8.0.150.0080.00016.92
8.0.140.0030.00316.92
8.0.130.0000.00613.41
8.0.120.0000.00716.91
8.0.110.0040.00416.93
8.0.100.0000.00816.81
8.0.90.0070.00016.91
8.0.80.0200.00316.91
8.0.70.0000.00716.93
8.0.60.0030.00516.86
8.0.50.0040.00416.82
8.0.30.0120.00817.26
8.0.20.0140.00817.40
8.0.10.0080.00016.87
8.0.00.0100.00816.83
7.4.330.0030.00315.08
7.4.320.0070.00016.63
7.4.300.0000.00816.63
7.4.290.0000.00716.50
7.4.280.0080.00316.59
7.4.270.0030.00316.58
7.4.260.0000.00716.60
7.4.250.0040.00416.36
7.4.240.0060.00116.51
7.4.230.0040.00416.39
7.4.220.0060.01216.48
7.4.210.0080.00816.59
7.4.200.0070.00016.60
7.4.160.0090.00916.31
7.4.150.0120.00617.40
7.4.140.0110.00917.86
7.4.130.0070.01116.53
7.4.120.0120.00616.47
7.4.110.0030.01416.39
7.4.100.0200.00016.42
7.4.90.0130.00416.39
7.4.80.0090.00919.39
7.4.70.0090.01016.39
7.4.60.0060.01216.49
7.4.50.0020.00216.56
7.4.40.0060.01816.36
7.4.30.0070.01016.57
7.4.00.0070.00815.10
7.3.330.0020.00213.12
7.3.320.0050.00013.22
7.3.310.0050.00316.11
7.3.300.0000.00716.16
7.3.290.0110.00416.20
7.3.280.0100.00816.27
7.3.270.0130.00717.40
7.3.260.0130.01016.57
7.3.250.0130.00316.46
7.3.240.0120.00616.35
7.3.230.0100.01016.39
7.3.210.0060.00916.36
7.3.200.0040.01216.36
7.3.190.0060.00916.41
7.3.180.0040.01216.17
7.3.170.0120.00416.45
7.3.160.0060.01216.26
7.3.120.0080.00715.00
7.3.110.0050.00914.96
7.3.100.0070.00914.94
7.3.90.0100.00614.64
7.3.80.0000.01315.07
7.3.70.0040.00514.68
7.3.60.0030.00714.77
7.3.50.0040.00714.76
7.3.40.0030.00814.63
7.3.30.0040.00914.81
7.3.20.0060.00816.66
7.3.10.0060.00616.59
7.3.00.0050.01016.73
7.2.330.0060.01016.60
7.2.320.0140.00516.30
7.2.310.0130.00316.77
7.2.300.0160.00016.45
7.2.290.0120.00616.51
7.2.250.0090.00415.03
7.2.240.0100.01014.88
7.2.230.0100.00715.16
7.2.220.0030.01414.83
7.2.210.0030.00914.85
7.2.200.0080.00515.05
7.2.190.0050.00814.94
7.2.180.0010.00714.77
7.2.170.0050.00714.89
7.2.160.0030.01015.09
7.2.150.0030.01016.95
7.2.140.0080.00416.70
7.2.130.0070.00716.96
7.2.120.0070.00316.97
7.2.110.0120.00016.90
7.2.100.0110.00716.78
7.2.90.0040.00716.79
7.2.80.0070.00316.80
7.2.70.0000.01416.65
7.2.60.0170.00416.70
7.2.50.0040.00716.73
7.2.40.0070.00716.97
7.2.30.0070.00716.86
7.2.20.0040.01117.03
7.2.10.0000.01116.91
7.2.00.0060.00918.00
7.1.330.0030.01215.64
7.1.320.0030.00815.81
7.1.310.0000.01215.70
7.1.300.0050.01115.82
7.1.290.0020.00815.68
7.1.280.0030.00815.72
7.1.270.0060.00615.74
7.1.260.0070.00615.77
7.1.250.0060.00615.69
7.1.200.0060.00615.77
7.1.100.0030.01018.04
7.1.70.0000.00916.76
7.1.60.0070.01619.11
7.1.50.0070.01816.88
7.1.00.0130.06722.44
7.0.200.0000.00816.76
7.0.60.0100.07719.95
7.0.50.0030.08317.86
7.0.40.0130.07720.30
7.0.30.0270.07320.11
7.0.20.0130.07020.24
7.0.10.0000.08720.09
7.0.00.0030.04320.24
5.6.280.0030.06721.02
5.6.210.0130.07320.54
5.6.200.0070.04718.19
5.6.190.0130.03720.42
5.6.180.0570.05720.47
5.6.170.0300.04320.48
5.6.160.0130.05320.39
5.6.150.0030.06018.28
5.6.140.0130.03018.21
5.6.130.0030.04718.18
5.6.120.0030.08320.95
5.6.110.0000.07721.00
5.6.100.0070.08020.97
5.6.90.0000.04721.12
5.6.80.0130.05720.28
5.5.350.0070.06720.46
5.5.340.0000.05018.09
5.5.330.0100.05320.28
5.5.320.3870.03720.39
5.5.310.0270.08020.34
5.5.300.0070.07317.99
5.5.290.0100.05318.08
5.5.280.0070.06720.64
5.5.270.0100.07320.86
5.5.260.0100.08020.64
5.5.250.0070.08020.53
5.5.240.0030.07320.18
5.4.450.0230.06019.43
5.4.440.0300.05719.56
5.4.430.0300.05019.58
5.4.420.0270.05319.37
5.4.410.0330.05719.38
5.4.400.0400.06019.04
5.4.390.0300.06019.17
5.4.380.0330.05719.10
5.4.370.0330.04718.84
5.4.360.0200.06019.25
5.4.350.0370.04319.23
5.4.340.0270.06719.04
5.4.320.0270.07719.32
5.4.310.0330.06019.06
5.4.300.0330.04019.26
5.4.290.0230.05319.12
5.4.280.0270.05019.10
5.4.270.0200.05719.30
5.4.260.0230.05319.06
5.4.250.0270.07019.10
5.4.240.0270.05018.83
5.4.230.0230.06719.11
5.4.220.0270.06019.20
5.4.210.0370.06019.29
5.4.200.0270.05019.22
5.4.190.0200.05719.00
5.4.180.0170.05319.18
5.4.170.0170.06319.22
5.4.160.0330.05318.82
5.4.150.0300.05019.16
5.4.140.0270.05016.66
5.4.130.0270.04716.36
5.4.120.0170.05316.39
5.4.110.0330.04316.57
5.4.100.0170.05316.47
5.4.90.0200.05316.39
5.4.80.0270.04316.54
5.4.70.0270.05716.26
5.4.60.0100.07316.49
5.4.50.0030.07316.22
5.4.40.0270.06316.48
5.4.30.0300.05016.43
5.4.20.0300.07316.51
5.4.10.0600.05316.56

preferences:
62.59 ms | 400 KiB | 5 Q