3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __construct(){echo 'a';} } // new ${!${''}='Test'}; new ${!$a='Test'};

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.0160.00016.75
8.3.50.0300.00521.27
8.3.40.0070.00718.79
8.3.30.0070.00718.57
8.3.20.0050.00220.16
8.3.10.0040.00423.36
8.3.00.0030.00517.80
8.2.180.0120.00318.29
8.2.170.0190.00322.96
8.2.160.0070.00720.32
8.2.150.0000.00924.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00017.63
8.2.110.0000.00920.38
8.2.100.0070.00717.84
8.2.90.0080.00019.22
8.2.80.0030.00517.97
8.2.70.0050.00317.75
8.2.60.0070.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00821.15
8.2.30.0060.00320.49
8.2.20.0060.00317.81
8.2.10.0000.00718.10
8.2.00.0040.00418.09
8.1.280.0170.00325.92
8.1.270.0050.00523.79
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00323.90
8.1.230.0000.01220.89
8.1.220.0000.00817.78
8.1.210.0030.00518.77
8.1.200.0030.00617.36
8.1.190.0050.00517.35
8.1.180.0000.00818.10
8.1.170.0000.00920.22
8.1.160.0000.00721.88
8.1.150.0050.00218.94
8.1.140.0000.00819.68
8.1.130.0000.00717.69
8.1.120.0000.00917.46
8.1.110.0000.01017.44
8.1.100.0040.00417.37
8.1.90.0050.00217.34
8.1.80.0070.00017.40
8.1.70.0000.00717.44
8.1.60.0030.00617.58
8.1.50.0030.00917.54
8.1.40.0040.00417.49
8.1.30.0050.00517.54
8.1.20.0060.00317.72
8.1.10.0000.00717.58
8.1.00.0000.00717.48
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0070.00017.18
8.0.260.0030.00317.30
8.0.250.0040.00416.94
8.0.240.0030.00316.94
8.0.230.0030.00316.92
8.0.220.0030.00316.95
8.0.210.0070.00016.84
8.0.200.0060.00016.90
8.0.190.0030.00617.00
8.0.180.0040.00416.91
8.0.170.0040.00416.88
8.0.160.0000.00716.84
8.0.150.0000.00716.85
8.0.140.0000.00716.93
8.0.130.0050.00013.39
8.0.120.0060.00316.88
8.0.110.0080.00016.86
8.0.100.0000.00916.89
8.0.90.0070.00016.89
8.0.80.0000.01416.97
8.0.70.0040.00416.98
8.0.60.0040.00416.84
8.0.50.0070.00017.06
8.0.30.0100.01017.30
8.0.20.0130.00617.40
8.0.10.0030.00316.94
8.0.00.0080.01016.78
7.4.330.0020.00315.14
7.4.320.0030.00316.55
7.4.300.0070.00016.58
7.4.290.0030.00316.52
7.4.280.0000.00816.47
7.4.270.0000.00716.61
7.4.260.0030.00316.42
7.4.250.0070.00016.46
7.4.240.0000.00716.58
7.4.230.0040.00416.41
7.4.220.0100.01016.54
7.4.210.0060.01416.55
7.4.200.0000.00716.40
7.4.160.0100.00616.39
7.4.150.0070.01017.40
7.4.140.0120.01017.86
7.4.130.0140.00316.41
7.4.120.0100.00816.55
7.4.110.0170.00716.45
7.4.100.0070.01116.67
7.4.90.0030.01416.58
7.4.80.0060.01019.39
7.4.70.0100.00616.54
7.4.60.0120.00416.38
7.4.50.0030.00616.27
7.4.40.0090.01516.63
7.4.30.0090.00916.52
7.4.00.0070.00715.23
7.3.330.0020.00213.30
7.3.320.0030.00313.30
7.3.310.0070.00016.29
7.3.300.0000.00716.31
7.3.290.0040.01116.31
7.3.280.0110.00716.24
7.3.270.0120.01217.40
7.3.260.0090.01216.46
7.3.240.0120.01116.29
7.3.230.0040.01416.52
7.3.210.0030.01616.31
7.3.200.0100.01016.25
7.3.190.0080.00816.52
7.3.180.0030.01316.30
7.3.170.0110.00516.35
7.3.160.0060.01316.43
7.3.10.0000.01216.55
7.3.00.0070.01016.27
7.2.330.0110.00716.50
7.2.320.0080.00816.74
7.2.310.0030.01316.55
7.2.300.0110.01216.24
7.2.290.0090.00916.64
7.2.130.0100.00716.98
7.2.120.0040.00716.86
7.2.110.0040.00716.82
7.2.100.0000.01017.02
7.2.90.0030.00616.94
7.2.80.0070.00416.68
7.2.70.0030.01017.09
7.2.60.0090.00616.86
7.2.50.0030.01217.07
7.2.40.0070.00716.59
7.2.30.0100.00317.04
7.2.20.0040.00716.95
7.2.10.0030.00916.63
7.2.00.0050.00917.89
7.1.250.0090.00615.69
7.1.200.0040.01115.57
7.1.100.0030.01017.60
7.1.70.0090.00016.83
7.1.60.0100.01619.50
7.1.50.0120.00934.48
7.1.00.0000.08022.33
7.0.200.0580.00314.84
7.0.60.0070.05719.77
7.0.50.0030.08317.85
7.0.40.0170.07720.02
7.0.30.0330.07720.08
7.0.20.0230.04020.10
7.0.10.0000.04720.19
7.0.00.0070.08320.06
5.6.280.0000.03720.91
5.6.210.0100.07020.46
5.6.200.0070.08018.20
5.6.190.0100.06720.43
5.6.180.0230.05320.57
5.6.170.0370.04020.39
5.6.160.0030.04320.55
5.6.150.0100.07318.14
5.6.140.0130.07318.14
5.6.130.0070.04718.21
5.6.120.0130.07320.99
5.6.110.0030.09021.04
5.6.100.0000.08721.01
5.6.90.0100.05320.97
5.6.80.0030.04020.37
5.5.350.0170.03320.46
5.5.340.0000.04017.98
5.5.330.0000.04320.27
5.5.320.0400.07720.20
5.5.310.0730.04020.19
5.5.300.0000.08717.94
5.5.290.0100.03317.98
5.5.280.0130.03020.64
5.5.270.0030.06020.87
5.5.260.0100.05020.79
5.5.250.0070.08020.78
5.5.240.0070.06720.35
5.4.450.0770.06019.48
5.4.440.0730.06319.46
5.4.430.0670.06719.45
5.4.420.0800.06319.46
5.4.410.0730.05019.49
5.4.400.0830.04319.31
5.4.390.0670.06019.23
5.4.380.0700.05319.28
5.4.370.0970.06719.37
5.4.360.0870.05719.22
5.4.350.0700.05319.26
5.4.340.0870.04319.29
5.4.320.0770.05319.26
5.4.310.0770.06018.87
5.4.300.0670.06018.84
5.4.290.0030.06319.12
5.4.280.0100.05318.86
5.4.270.0230.06319.37
5.4.260.0570.05319.07
5.4.250.0770.05719.11
5.4.240.0800.05019.25
5.4.230.0700.06019.36
5.4.220.0800.05019.28
5.4.210.0830.04319.14
5.4.200.0800.04719.14
5.4.190.0700.05319.29
5.4.180.0670.05718.96
5.4.170.0830.04719.11
5.4.160.0870.05019.26
5.4.150.0930.05318.99
5.4.140.0830.04716.42
5.4.130.0700.05316.43
5.4.120.0770.05316.55
5.4.110.0670.06016.50
5.4.100.0600.05016.62
5.4.90.0700.05716.25
5.4.80.0570.04716.26
5.4.70.0000.05016.39
5.4.60.0270.05316.19
5.4.50.0130.04016.33
5.4.40.0230.07016.55
5.4.30.0030.05316.43
5.4.20.0000.03716.37
5.4.10.0230.07316.50

preferences:
47.43 ms | 401 KiB | 5 Q