3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$foo()() class foo { static function bar(){ return 'bar'; }} function bar() { echo '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.60.0170.00016.38
8.3.50.0100.01018.16
8.3.40.0120.00318.54
8.3.30.0030.01018.53
8.3.20.0030.01020.04
8.3.10.0000.00723.59
8.3.00.0050.00318.04
8.2.180.0030.01318.70
8.2.170.0070.01022.96
8.2.160.0100.00320.29
8.2.150.0030.00624.18
8.2.140.0060.00924.66
8.2.130.0070.00026.16
8.2.120.0030.00617.75
8.2.110.0070.00322.27
8.2.100.0040.00817.91
8.2.90.0060.00319.07
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0070.00421.06
8.2.30.0000.00720.57
8.2.20.0040.00417.64
8.2.10.0040.00417.98
8.2.00.0000.00718.01
8.1.280.0120.00325.92
8.1.270.0040.00423.97
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00422.22
8.1.230.0080.00420.92
8.1.220.0030.00617.78
8.1.210.0050.00318.79
8.1.200.0050.00517.13
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00518.73
8.1.160.0070.00021.94
8.1.150.0050.00218.79
8.1.140.0050.00219.49
8.1.130.0000.00817.63
8.1.120.0070.00017.37
8.1.110.0040.00417.37
8.1.100.0040.00417.30
8.1.90.0040.00417.35
8.1.80.0000.00717.34
8.1.70.0000.00717.39
8.1.60.0000.00817.59
8.1.50.0030.00517.41
8.1.40.0030.00517.46
8.1.30.0040.00417.66
8.1.20.0000.00817.60
8.1.10.0080.00017.53
8.1.00.0000.00717.50
8.0.300.0000.00720.10
8.0.290.0070.00016.63
8.0.280.0030.00318.36
8.0.270.0030.00317.30
8.0.260.0040.00417.19
8.0.250.0000.00716.89
8.0.240.0060.00016.95
8.0.230.0030.00316.91
8.0.220.0040.00416.80
8.0.210.0000.00916.90
8.0.200.0030.00316.95
8.0.190.0000.00716.97
8.0.180.0070.00016.91
8.0.170.0080.00016.86
8.0.160.0040.00416.93
8.0.150.0000.00716.70
8.0.140.0000.00716.83
8.0.130.0050.00213.32
8.0.120.0000.00716.75
8.0.110.0030.00516.91
8.0.100.0000.00816.66
8.0.90.0000.00716.77
8.0.80.0060.00916.79
8.0.70.0000.00716.77
8.0.60.0070.00016.76
8.0.50.0040.00416.73
8.0.30.0130.00417.13
8.0.20.0070.01417.40
8.0.10.0040.00416.83
8.0.00.0100.00816.73
7.4.330.0000.00515.08
7.4.320.0030.00316.36
7.4.300.0040.00416.61
7.4.290.0030.00316.52
7.4.280.0050.00316.62
7.4.270.0070.00316.58
7.4.260.0090.00016.58
7.4.250.0040.00416.59
7.4.240.0030.00516.45
7.4.230.0030.00316.63
7.4.220.0080.00916.35
7.4.210.0150.00616.37
7.4.200.0070.00016.38
7.4.160.0030.01316.30
7.4.150.0040.01417.40
7.4.140.0040.01417.86
7.4.130.0080.01516.48
7.4.120.0070.01216.63
7.4.110.0190.00316.36
7.4.100.0110.01116.41
7.4.90.0120.00616.46
7.4.80.0120.01219.39
7.4.70.0120.00916.55
7.4.60.0100.00616.54
7.4.50.0000.00816.62
7.4.40.0150.00616.43
7.4.30.0140.01716.63
7.4.00.0060.00614.80
7.3.330.0060.00013.22
7.3.320.0000.00513.22
7.3.310.0070.00016.14
7.3.300.0000.00816.27
7.3.290.0040.01116.26
7.3.280.0080.01016.29
7.3.270.0080.00817.40
7.3.260.0060.01216.49
7.3.250.0100.00616.30
7.3.240.0090.01116.36
7.3.230.0070.01016.40
7.3.210.0100.00616.44
7.3.200.0000.01516.41
7.3.190.0100.00616.28
7.3.180.0100.00616.32
7.3.170.0140.00716.48
7.3.160.0040.01216.41
7.3.10.0060.00616.47
7.3.00.0030.00716.39
7.2.330.0170.00716.66
7.2.320.0110.00716.65
7.2.310.0110.00716.55
7.2.300.0070.01016.54
7.2.290.0030.01716.58
7.2.130.0030.01016.66
7.2.120.0030.00516.79
7.2.110.0000.01116.81
7.2.100.0110.00316.78
7.2.90.0040.00716.79
7.2.80.0070.00716.89
7.2.70.0040.00816.99
7.2.60.0020.00616.84
7.2.50.0090.00616.96
7.2.40.0060.00616.56
7.2.30.0040.00716.82
7.2.20.0070.00416.68
7.2.10.0080.00816.70
7.2.00.0000.01118.05
7.1.250.0030.00715.68
7.1.200.0000.01315.55
7.1.100.0060.00918.05
7.1.70.0110.00417.11
7.1.60.0100.01419.11
7.1.50.0070.01416.86
7.1.00.0000.08022.47
7.0.200.0040.00416.74
7.0.60.0030.04019.98
7.0.50.0070.05017.83
7.0.40.0170.07320.13
7.0.30.0530.05320.23
7.0.20.0270.07020.19
7.0.10.0170.06020.12
7.0.00.0030.08720.25
5.6.280.0070.03021.04
5.6.210.0000.09020.69
5.6.200.0070.06318.16
5.6.190.0400.02320.55
5.6.180.4070.04720.36
5.6.170.0300.06720.48
5.6.160.0030.04720.45
5.6.150.0070.03718.30
5.6.140.0000.08318.19
5.6.130.0030.04718.18
5.6.120.0100.05321.14
5.6.110.0130.06321.00
5.6.100.0130.03021.00
5.6.90.0070.07021.01
5.6.80.0100.06720.41
5.6.70.0000.05020.40
5.5.350.0130.04020.41
5.5.340.0070.04318.02
5.5.330.0100.07720.34
5.5.320.0300.04720.24
5.5.310.0330.04320.20
5.5.300.0070.08018.03
5.5.290.0100.05017.92
5.5.280.0070.04020.80
5.5.270.0070.08320.73
5.5.260.0070.05020.89
5.5.250.0130.08320.80
5.5.240.0070.05720.35
5.4.450.0570.06319.69
5.4.440.0570.06319.18
5.4.430.0770.05719.60
5.4.420.0900.08019.39
5.4.410.0900.04319.43
5.4.400.0770.07019.23
5.4.390.1000.04719.25
5.4.380.0700.05019.28
5.4.370.0770.05319.05
5.4.360.0730.05719.36
5.4.350.1070.04719.11
5.4.340.0870.07019.28
5.4.320.0630.05019.01
5.4.310.0670.04718.82
5.4.300.0530.05719.35
5.4.290.0800.04718.84
5.4.280.0470.07018.84
5.4.270.0630.06019.00
5.4.260.0670.04019.27
5.4.250.0830.05319.26
5.4.240.0770.07719.14
5.4.230.0700.06319.00
5.4.220.0600.05719.13
5.4.210.0830.05318.96
5.4.200.0900.04719.11
5.4.190.0530.06319.00
5.4.180.0600.05318.99
5.4.170.0670.05319.14
5.4.160.0530.05719.25
5.4.150.0570.05018.82
5.4.140.0630.04716.41
5.4.130.0500.05716.32
5.4.120.0570.05016.50
5.4.110.0800.05016.64
5.4.100.0670.05316.67
5.4.90.0730.04716.57
5.4.80.0670.05016.55
5.4.70.0870.05316.44
5.4.60.0770.05316.50
5.4.50.0900.03716.49
5.4.40.0700.05716.22
5.4.30.0700.05716.25
5.4.20.0770.06016.49
5.4.10.0870.05016.66
5.4.00.0570.05316.12

preferences:
35.56 ms | 401 KiB | 5 Q