3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$foo->bar()::baz() class foo { function bar(){ echo 'oki'; }} function bar() { echo 'oki'; } class bar { static $baz = 'bazz'; } $foo = 'foo'; echo $foo->bar();

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.70.0090.00616.63
8.3.60.0060.00916.63
8.3.50.0120.00721.89
8.3.40.0170.00318.77
8.3.30.0080.00618.85
8.3.20.0000.00820.29
8.3.10.0040.00423.65
8.3.00.0080.00018.04
8.2.180.0100.00718.28
8.2.170.0040.01122.96
8.2.160.0100.00320.57
8.2.150.0070.01124.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0030.00617.63
8.2.110.0070.00420.35
8.2.100.0120.00017.79
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0040.00417.61
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0090.00021.19
8.2.30.0070.00020.54
8.2.20.0080.00017.73
8.2.10.0040.00418.03
8.2.00.0000.00717.92
8.1.280.0060.00925.92
8.1.270.0090.00023.95
8.1.260.0070.01126.35
8.1.250.0180.00028.09
8.1.240.0040.00422.61
8.1.230.0130.00317.63
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0070.00018.90
8.1.160.0000.00721.98
8.1.150.0040.00418.72
8.1.140.0030.00519.43
8.1.130.0050.00217.29
8.1.120.0000.00717.37
8.1.110.0040.00417.39
8.1.100.0040.00417.25
8.1.90.0040.00417.37
8.1.80.0000.00717.39
8.1.70.0080.00017.35
8.1.60.0000.00717.49
8.1.50.0090.00017.52
8.1.40.0000.01017.52
8.1.30.0000.00817.56
8.1.20.0030.00617.53
8.1.10.0070.00017.58
8.1.00.0030.00617.51
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00318.39
8.0.270.0000.00717.19
8.0.260.0000.00616.72
8.0.250.0000.00716.96
8.0.240.0060.00016.95
8.0.230.0000.00716.91
8.0.220.0000.00716.88
8.0.210.0050.00216.93
8.0.200.0040.00416.81
8.0.190.0050.00316.99
8.0.180.0050.00216.93
8.0.170.0000.00716.83
8.0.160.0040.00416.82
8.0.150.0040.00416.83
8.0.140.0000.00716.75
8.0.130.0050.00313.39
8.0.120.0000.00816.68
8.0.110.0000.00816.78
8.0.100.0070.00016.90
8.0.90.0070.00016.93
8.0.80.0100.01016.84
8.0.70.0040.00416.71
8.0.60.0040.00416.70
8.0.50.0000.00716.88
8.0.30.0080.01117.00
8.0.20.0110.00917.40
8.0.10.0070.00017.06
8.0.00.0100.00816.66
7.4.330.0000.00515.08
7.4.320.0000.00616.45
7.4.300.0030.00316.53
7.4.290.0000.00716.41
7.4.280.0030.00316.47
7.4.270.0030.00616.65
7.4.260.0030.00316.38
7.4.250.0040.00416.47
7.4.240.0030.00316.59
7.4.230.0030.00316.57
7.4.220.0090.00916.49
7.4.210.0070.00716.44
7.4.200.0000.00816.41
7.4.160.0040.01216.58
7.4.150.0140.00417.40
7.4.140.0150.00517.86
7.4.130.0100.01016.39
7.4.120.0090.00816.49
7.4.110.0130.00416.32
7.4.100.0070.01416.59
7.4.90.0000.01816.33
7.4.80.0170.00019.39
7.4.70.0130.00316.56
7.4.60.0030.01316.50
7.4.50.0080.00016.38
7.4.40.0080.00816.54
7.4.30.0070.01016.55
7.4.00.0080.00814.69
7.3.330.0000.00613.29
7.3.320.0000.00513.30
7.3.310.0070.00016.25
7.3.300.0040.00416.30
7.3.290.0100.00716.27
7.3.280.0060.01216.30
7.3.270.0130.00317.40
7.3.260.0060.01216.26
7.3.250.0130.00416.40
7.3.240.0140.00416.48
7.3.230.0030.01616.39
7.3.210.0130.00316.50
7.3.200.0070.01016.23
7.3.190.0080.00816.23
7.3.180.0060.01016.34
7.3.170.0060.01016.63
7.3.160.0070.01016.52
7.2.330.0110.00816.31
7.2.320.0080.00816.46
7.2.310.0100.00716.31
7.2.300.0080.00816.58
7.2.290.0200.00316.60
7.2.60.0080.00416.55
7.2.00.0040.00919.15
7.1.200.0030.00915.48
7.1.100.0040.00718.20
7.1.70.0060.00916.99
7.1.60.0140.01119.11
7.1.50.0090.00316.61
7.1.00.0070.07322.27
7.0.200.0040.00416.63
7.0.60.0170.06019.86
7.0.50.0070.08017.88
7.0.40.0070.08720.23
7.0.30.0330.04020.21
7.0.20.0300.07720.33
7.0.10.0230.05020.16
7.0.00.0100.09020.06
5.6.280.0070.03321.13
5.6.210.0030.08720.60
5.6.200.0030.04018.12
5.6.190.0100.04020.63
5.6.180.4070.04720.39
5.6.170.0230.05320.48
5.6.160.0070.04320.43
5.6.150.0100.03318.15
5.6.140.0070.08318.19
5.6.130.0070.08018.15
5.6.120.0100.08021.05
5.6.110.0030.07720.89
5.6.100.0170.06021.11
5.6.90.0070.08720.98
5.6.80.0130.07320.38
5.6.70.0030.08020.37
5.5.350.0170.06720.41
5.5.340.0130.07317.95
5.5.330.0070.08020.41
5.5.320.0330.04320.34
5.5.310.0300.07320.26
5.5.300.0030.04017.93
5.5.290.0070.03718.05
5.5.280.0070.03720.77
5.5.270.0070.05320.75
5.5.260.0130.08020.66
5.5.250.0170.07320.58
5.5.240.0100.06720.17
5.4.450.0170.06019.20
5.4.440.0170.05719.57
5.4.430.0330.06719.46
5.4.420.0270.07319.46
5.4.410.0170.06319.45
5.4.400.0130.05319.00
5.4.390.0200.04719.16
5.4.380.0200.05719.28
5.4.370.0200.05019.15
5.4.360.0170.05719.24
5.4.350.0170.05319.15
5.4.340.0270.04319.16
5.4.320.0270.04719.26
5.4.310.0370.05018.84
5.4.300.0200.05718.86
5.4.290.0230.04719.00
5.4.280.0170.05719.16
5.4.270.0130.05719.00
5.4.260.0130.05319.25
5.4.250.0130.05719.27
5.4.240.0230.05319.30
5.4.230.0130.05719.00
5.4.220.0200.05719.27
5.4.210.0230.04319.14
5.4.200.0100.05319.05
5.4.190.0070.06018.99
5.4.180.0170.05319.12
5.4.170.0200.04719.27
5.4.160.0130.05019.15
5.4.150.0100.05719.20
5.4.140.0170.04716.30
5.4.130.0070.05316.43
5.4.120.0130.05016.57
5.4.110.0070.05716.33
5.4.100.0130.05016.64
5.4.90.0100.05016.68
5.4.80.0130.04716.57
5.4.70.0070.05316.60
5.4.60.0170.04716.61
5.4.50.0170.04316.40
5.4.40.0100.06016.40
5.4.30.0100.05716.61
5.4.20.0270.04316.22
5.4.10.0230.06016.59
5.4.00.0270.04715.72

preferences:
46.51 ms | 401 KiB | 5 Q