3v4l.org

run code in 300+ PHP versions simultaneously
<?php $method = 'method'; $test = new Test(); $test->method(); $test->$method(); $test->{'method'}(); Test::method(); Test::$method(); Test::{'method'}();

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.0070.01318.56
8.3.50.0100.00921.21
8.3.40.0120.00318.97
8.3.30.0180.00318.85
8.3.20.0040.00420.34
8.3.10.0060.00322.09
8.3.00.0000.00822.52
8.2.180.0040.01218.54
8.2.170.0140.00422.96
8.2.160.0110.00420.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0150.00326.16
8.2.120.0000.00819.54
8.2.110.0100.00022.10
8.2.100.0100.00321.14
8.2.90.0000.00819.09
8.2.80.0070.00019.28
8.2.70.0020.00717.49
8.2.60.0050.00317.80
8.2.50.0040.00418.07
8.2.40.0020.00518.03
8.2.30.0050.00217.99
8.2.20.0000.00717.72
8.2.10.0040.00417.81
8.2.00.0000.00817.63
8.1.280.0110.00725.92
8.1.270.0040.00420.08
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0040.00719.07
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0100.00017.22
8.1.190.0090.00017.53
8.1.180.0040.00418.76
8.1.170.0030.00618.36
8.1.160.0030.00422.05
8.1.150.0000.00718.48
8.1.140.0000.00717.30
8.1.130.0070.00017.82
8.1.120.0000.00717.43
8.1.110.0040.00417.46
8.1.100.0050.00217.28
8.1.90.0000.00817.31
8.1.80.0000.00717.42
8.1.70.0000.00717.40
8.1.60.0000.00817.55
8.1.50.0050.00317.57
8.1.40.0040.00417.51
8.1.30.0040.00417.56
8.1.20.0030.00517.63
8.1.10.0040.00417.56
8.1.00.0040.00417.55
8.0.300.0000.00818.77
8.0.290.0030.00517.16
8.0.280.0000.00718.39
8.0.270.0030.00317.11
8.0.260.0060.00316.75
8.0.250.0030.00317.00
8.0.240.0000.00716.93
8.0.230.0000.00716.95
8.0.220.0030.00316.92
8.0.210.0070.00016.86
8.0.200.0030.00316.82
8.0.190.0000.00716.89
8.0.180.0040.00416.88
8.0.170.0020.00516.97
8.0.160.0040.00417.01
8.0.150.0040.00416.84
8.0.140.0000.00816.75
8.0.130.0030.00313.31
8.0.120.0040.00416.89
8.0.110.0070.00016.80
8.0.100.0000.00716.95
8.0.90.0000.00716.93
8.0.80.0060.01616.77
8.0.70.0050.00216.96
8.0.60.0040.00416.75
8.0.50.0040.00416.92
8.0.30.0120.00717.15
8.0.20.0180.00517.40
8.0.10.0000.00717.02
8.0.00.0100.00716.62
7.4.330.0030.00315.00
7.4.320.0000.00616.40
7.4.300.0060.00016.64
7.4.290.0000.00716.58
7.4.280.0000.00716.41
7.4.270.0070.00016.62
7.4.260.0040.00416.48
7.4.250.0040.00416.49
7.4.240.0020.00616.52
7.4.230.0030.00316.61
7.4.220.0170.00316.61
7.4.210.0080.00916.52
7.4.200.0000.00716.68
7.4.190.0040.00416.67
7.4.160.0150.00616.62
7.4.150.0100.00717.40
7.4.140.0100.01217.86
7.4.130.0080.01016.48
7.4.120.0040.01216.48
7.4.110.0090.00916.47
7.4.100.0090.00816.58
7.4.90.0150.00916.50
7.4.80.0040.01419.39
7.4.70.0130.00316.40
7.4.60.0090.00916.57
7.4.50.0000.00516.54
7.4.40.0100.00722.77
7.4.30.0100.00616.61
7.4.00.0070.00914.95
7.3.330.0050.00013.23
7.3.320.0020.00213.19
7.3.310.0040.00416.32
7.3.300.0040.00216.21
7.3.290.0140.00016.18
7.3.280.0080.00816.29
7.3.270.0090.00917.40
7.3.260.0100.00716.23
7.3.250.0090.00916.34
7.3.240.0060.01216.25
7.3.230.0110.00616.43
7.3.210.0120.00916.15
7.3.200.0070.01419.39
7.3.190.0160.00016.38
7.3.180.0090.00616.43
7.3.170.0110.00716.27
7.3.160.0040.01216.24
7.3.120.0020.01114.55
7.3.110.0070.01014.74
7.3.100.0080.00814.84
7.3.90.0070.00714.75
7.3.80.0000.01314.71
7.3.70.0100.00314.82
7.3.60.0040.01214.85
7.3.50.0040.00814.34
7.3.40.0060.00914.79
7.3.30.0050.00514.84
7.3.20.0090.00616.44
7.3.10.0000.01516.54
7.3.00.0030.00916.60
7.2.330.0110.00716.49
7.2.320.0090.00916.57
7.2.310.0090.00916.63
7.2.300.0060.01616.49
7.2.290.0060.00916.45
7.2.250.0060.01314.83
7.2.240.0070.01314.65
7.2.230.0100.01014.96
7.2.220.0050.00514.89
7.2.210.0080.00814.70
7.2.200.0060.00914.97
7.2.190.0030.01414.97
7.2.180.0090.00314.98
7.2.170.0060.00914.85
7.2.60.0090.00316.64
7.2.00.0060.00619.12
7.1.330.0030.01015.71
7.1.320.0040.00415.70
7.1.310.0090.00315.71
7.1.300.0100.00315.65
7.1.290.0040.00715.76
7.1.280.0040.01115.49
7.1.270.0000.01615.71
7.1.260.0040.00715.54
7.1.200.0100.00015.61
7.1.100.0060.00617.92
7.1.70.0000.00817.00
7.1.60.0060.01919.82
7.1.50.0040.00716.96
7.1.00.0030.05022.54
7.0.200.0030.00516.54
7.0.140.0100.06721.99
7.0.70.3830.03719.91
7.0.60.0030.06320.07
7.0.50.0070.05017.89
7.0.40.0100.03719.95
7.0.30.0170.05720.18
7.0.20.0300.08319.96
7.0.10.0270.04720.33
7.0.00.0100.07720.11
5.6.280.0030.07320.89
5.6.210.0100.07320.47
5.6.200.0070.08018.21
5.6.190.0070.08020.45
5.6.180.0200.06720.24
5.6.170.0270.07720.45
5.6.160.0070.03720.44
5.6.150.0030.04718.23
5.6.140.0130.04018.16
5.6.130.0100.08018.16
5.6.120.0070.06020.96
5.6.110.0100.08020.99
5.6.100.0170.06321.13
5.6.90.0070.04020.99
5.6.80.0070.03720.53
5.6.70.0330.06720.41
5.5.350.0200.07720.40
5.5.340.0030.08017.89
5.5.330.0030.09020.15
5.5.320.0070.06720.07
5.5.310.0300.07020.14
5.5.300.0070.03717.88
5.5.290.0030.04017.91
5.5.280.0070.06020.77
5.5.270.0070.08320.67
5.5.260.0100.07020.72
5.5.250.0070.06720.54
5.5.240.0100.06320.25
5.4.450.0770.07319.58
5.4.440.0870.05319.65
5.4.430.0930.05719.63
5.4.420.0170.05319.23
5.4.410.0870.05719.38
5.4.400.0930.05319.15
5.4.390.1030.04319.21
5.4.380.0130.06718.61
5.4.370.0270.06018.55
5.4.360.0200.05018.51
5.4.350.0100.03911.98
5.4.340.0100.05311.97
5.4.320.0040.03912.45
5.4.310.0120.04612.45
5.4.300.0050.04112.45
5.4.290.0030.05012.45
5.4.280.0110.04312.35
5.4.270.0080.04512.35
5.4.260.0130.04512.35
5.4.250.0200.04018.70
5.4.240.0070.05018.82
5.4.230.0030.06018.67
5.4.220.0130.05018.84
5.4.210.0100.07718.64
5.4.200.0100.04718.88
5.4.190.0100.05318.69
5.4.180.0100.05018.87
5.4.170.0070.05318.67
5.4.160.0170.04318.93
5.4.150.0100.05318.78
5.4.140.0130.04716.30
5.4.130.0070.05016.47
5.4.120.0130.06716.25
5.4.110.0100.07316.37
5.4.100.0100.04716.49
5.4.90.0100.04716.20
5.4.80.0070.05016.13
5.4.70.0100.07016.35
5.4.60.0100.04716.28
5.4.50.0070.05316.12
5.4.40.0070.04716.39
5.4.30.0070.05016.11
5.4.20.0100.04716.16
5.4.10.0070.05016.30
5.4.00.0070.05015.70
5.3.290.0060.03912.80
5.3.280.0070.05314.46
5.3.270.0030.05314.48
5.3.260.0100.05014.76
5.3.250.0100.04714.47
5.3.240.0070.05014.48
5.3.230.0170.05014.29
5.3.220.0130.04314.57
5.3.210.0200.05314.57
5.3.200.0130.04014.44
5.3.190.0130.04314.36
5.3.180.0000.05714.71
5.3.170.0100.04714.41
5.3.160.0130.04314.43
5.3.150.0100.04714.57
5.3.140.0100.04714.45
5.3.130.0070.05714.25
5.3.120.0130.04714.43
5.3.110.0130.04714.70
5.3.100.0070.05014.04
5.3.90.0170.05713.89
5.3.80.0170.04313.89
5.3.70.0130.04013.79
5.3.60.0070.05013.95
5.3.50.0070.05013.65
5.3.40.0070.04713.95
5.3.30.0100.04313.92
5.3.20.0100.04313.79
5.3.10.0070.04713.54
5.3.00.0130.04713.74
5.2.170.0070.04011.16
5.2.160.0130.03311.04
5.2.150.0100.03711.25
5.2.140.0000.04711.25
5.2.130.0070.04011.12
5.2.120.0130.03711.02
5.2.110.0030.04011.12
5.2.100.0030.06010.93
5.2.90.0100.03711.12
5.2.80.0130.03311.10
5.2.70.0030.04310.98
5.2.60.0170.03711.05
5.2.50.0130.03711.13
5.2.40.0170.03711.02
5.2.30.0170.03310.98
5.2.20.0030.04310.98
5.2.10.0100.04010.84
5.2.00.0030.04310.63
5.1.60.0070.0339.77
5.1.50.0100.0279.95
5.1.40.0030.0339.87
5.1.30.0100.04710.31
5.1.20.0000.04010.51
5.1.10.0070.04310.12
5.1.00.0030.03710.09
5.0.50.0200.0178.57
5.0.40.0030.0278.60
5.0.30.0000.0478.16
5.0.20.0070.0278.36
5.0.10.0100.0238.12
5.0.00.0030.0408.19
4.4.90.0000.0236.92
4.4.80.0030.0206.92
4.4.70.0030.0206.92
4.4.60.0030.0206.92
4.4.50.0030.0236.92
4.4.40.0030.0336.92
4.4.30.0030.0206.92
4.4.20.0000.0236.92
4.4.10.0030.0276.92
4.4.00.0070.0406.92
4.3.110.0030.0206.92
4.3.100.0000.0306.92
4.3.90.0000.0206.92
4.3.80.0070.0306.92
4.3.70.0070.0176.92
4.3.60.0070.0206.92
4.3.50.0000.0276.92
4.3.40.0030.0306.92
4.3.30.0030.0306.92
4.3.20.0070.0206.92
4.3.10.0070.0236.92
4.3.00.0070.0207.19

preferences:
43.67 ms | 401 KiB | 5 Q