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 = new 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.0110.00416.50
8.3.60.0110.01116.34
8.3.50.0110.00822.04
8.3.40.0040.01118.80
8.3.30.0090.00618.59
8.3.20.0040.00420.33
8.3.10.0120.00623.45
8.3.00.0000.00817.79
8.2.190.0110.00418.16
8.2.180.0160.00018.12
8.2.170.0040.01222.96
8.2.160.0170.00320.52
8.2.150.0030.00524.18
8.2.140.0180.00024.66
8.2.130.0100.00726.16
8.2.120.0040.00417.38
8.2.110.0060.00322.13
8.2.100.0040.00817.72
8.2.90.0000.00817.50
8.2.80.0040.00418.77
8.2.70.0030.00517.50
8.2.60.0050.00317.50
8.2.50.0080.00017.50
8.2.40.0030.00519.35
8.2.30.0050.00220.68
8.2.20.0000.00717.55
8.2.10.0040.00417.86
8.2.00.0040.00417.86
8.1.280.0150.00025.92
8.1.270.0030.00623.96
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0120.00018.86
8.1.230.0110.00017.77
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.22
8.1.190.0080.00317.22
8.1.180.0060.00318.10
8.1.170.0080.00017.62
8.1.160.0040.00421.93
8.1.150.0000.00718.82
8.1.140.0040.00419.41
8.1.130.0030.00317.50
8.1.120.0070.00017.39
8.1.110.0030.00517.39
8.1.100.0030.00317.41
8.1.90.0030.00317.42
8.1.80.0080.00017.36
8.1.70.0000.00817.43
8.1.60.0000.00817.45
8.1.50.0000.00917.43
8.1.40.0040.00817.48
8.1.30.0000.00817.69
8.1.20.0080.00017.66
8.1.10.0050.00217.61
8.1.00.0080.00017.49
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.48
8.0.270.0070.00017.12
8.0.260.0030.00317.25
8.0.250.0040.00416.92
8.0.240.0070.00016.77
8.0.230.0000.00716.90
8.0.220.0080.00016.81
8.0.210.0000.00716.79
8.0.200.0030.00316.76
8.0.190.0000.00816.91
8.0.180.0000.00716.80
8.0.170.0040.00416.85
8.0.160.0040.00416.91
8.0.150.0070.00016.78
8.0.140.0030.00516.80
8.0.130.0050.00013.31
8.0.120.0040.00416.71
8.0.110.0000.00716.78
8.0.100.0040.00416.84
8.0.90.0040.00416.85
8.0.80.0140.00616.79
8.0.70.0030.00516.63
8.0.60.0000.00716.70
8.0.50.0040.00416.88
8.0.30.0050.01417.06
8.0.20.0100.01217.40
8.0.10.0040.00416.82
8.0.00.0090.00816.88
7.4.330.0020.00215.08
7.4.320.0000.00616.54
7.4.300.0000.00716.38
7.4.290.0000.00816.39
7.4.280.0000.00716.63
7.4.270.0100.00016.58
7.4.260.0030.00316.57
7.4.250.0070.00016.45
7.4.240.0030.00316.50
7.4.230.0030.00316.48
7.4.220.0100.01016.53
7.4.210.0070.00716.43
7.4.200.0050.00316.52
7.4.160.0030.01216.43
7.4.150.0110.00817.40
7.4.140.0080.01417.86
7.4.130.0110.00916.62
7.4.120.0090.00816.55
7.4.110.0140.00916.59
7.4.100.0040.01216.34
7.4.90.0100.01316.32
7.4.80.0150.00719.39
7.4.70.0100.00716.44
7.4.60.0090.00616.43
7.4.50.0050.00316.38
7.4.40.0070.01016.37
7.4.30.0100.00616.54
7.4.00.0070.01014.89
7.3.330.0000.00513.25
7.3.320.0020.00213.19
7.3.310.0000.00716.29
7.3.300.0080.00016.15
7.3.290.0060.01116.22
7.3.280.0060.01116.21
7.3.270.0120.00617.40
7.3.260.0160.00616.24
7.3.250.0100.00916.31
7.3.240.0110.01016.33
7.3.230.0150.00316.43
7.3.210.0170.00316.41
7.3.200.0030.01316.37
7.3.190.0100.00716.48
7.3.180.0190.00016.13
7.3.170.0120.00616.46
7.3.160.0080.00816.22
7.3.10.0140.00615.91
7.3.00.0170.00416.17
7.2.330.0070.01716.46
7.2.320.0030.01316.72
7.2.310.0120.00616.65
7.2.300.0160.00016.41
7.2.290.0100.01316.55
7.2.130.0150.00616.65
7.2.120.0090.00916.68
7.2.110.0130.01016.69
7.2.100.0050.01016.62
7.2.90.0220.00316.50
7.2.80.0060.00616.66
7.2.70.0030.00916.84
7.2.60.0070.00816.63
7.2.50.0030.00816.54
7.2.40.0120.00916.50
7.2.30.0090.00316.75
7.2.20.0000.01216.42
7.2.10.0040.00416.57
7.2.00.0090.00717.96
7.1.250.0100.01015.47
7.1.200.0090.00615.57
7.1.100.0040.00417.97
7.1.70.0030.00716.73
7.1.60.0060.01919.11
7.1.50.0030.01716.61
7.1.00.0030.07722.31
7.0.200.0030.00616.68
7.0.60.0070.03719.96
7.0.50.0070.08317.88
7.0.40.0100.07020.08
7.0.30.0230.04020.07
7.0.20.0270.08320.15
7.0.10.0100.05320.21
7.0.00.0130.04720.20
5.6.280.0000.03320.86
5.6.210.0100.08020.71
5.6.200.0000.07018.16
5.6.190.0030.04320.67
5.6.180.3470.04020.59
5.6.170.0230.05720.44
5.6.160.0170.07320.45
5.6.150.0070.07018.18
5.6.140.0070.08718.16
5.6.130.0030.07018.28
5.6.120.0030.05021.00
5.6.110.0200.06721.12
5.6.100.0100.06721.11
5.6.90.0130.07321.11
5.6.80.0100.08020.44
5.6.70.0030.04020.51
5.5.350.0330.06320.50
5.5.340.0000.04317.95
5.5.330.0070.07020.27
5.5.320.0400.03320.26
5.5.310.0270.04720.43
5.5.300.0070.05017.98
5.5.290.0000.08717.96
5.5.280.0200.06720.89
5.5.270.0130.04320.76
5.5.260.0170.07320.68
5.5.250.0030.08320.69
5.5.240.0070.08020.29
5.4.450.0570.05719.38
5.4.440.0470.05719.52
5.4.430.0570.04719.30
5.4.420.0530.04719.72
5.4.410.0470.06319.46
5.4.400.0600.05019.29
5.4.390.0530.05719.01
5.4.380.0600.05719.30
5.4.370.0530.05719.37
5.4.360.0600.05319.37
5.4.350.0530.05319.16
5.4.340.0600.06018.87
5.4.320.0470.06018.98
5.4.310.0670.04719.37
5.4.300.0570.04719.27
5.4.290.0530.05019.27
5.4.280.0530.05718.97
5.4.270.0570.05719.27
5.4.260.0500.05319.30
5.4.250.0600.04719.36
5.4.240.0470.05019.21
5.4.230.0530.05318.83
5.4.220.0470.06319.14
5.4.210.0500.05019.24
5.4.200.0630.04018.83
5.4.190.0500.07019.04
5.4.180.0600.07019.13
5.4.170.0570.07319.13
5.4.160.0530.05319.25
5.4.150.0400.06319.13
5.4.140.0530.06716.56
5.4.130.0500.06316.53
5.4.120.0670.05716.30
5.4.110.0570.05316.60
5.4.100.0700.06316.70
5.4.90.0430.05316.44
5.4.80.0470.05316.55
5.4.70.0470.04716.23
5.4.60.0430.05716.54
5.4.50.0600.05016.58
5.4.40.0600.04316.25
5.4.30.0530.05016.50
5.4.20.0530.06016.53
5.4.10.0530.05316.49
5.4.00.0470.05015.91

preferences:
71.4 ms | 401 KiB | 5 Q