3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { class Bar { public static function getBar() { return 'Bar'; } } echo "<h1>Bar: ".\Foo\Bar::getBar()."</h1>"; // outputs 'Bar: Bar' $function = '\Foo\Bar::getBar'; echo "<h1>Bar: ".$function()."</h1>"; // outputs 'Fatal error: Call to undefined function \Foo\Bar::getBar()' $function = '\Foo\Bar\getBar'; echo "<h1>Bar: ".$function()."</h1>"; // outputs 'Fatal error: Call to undefined function \foo\Bar\getBar()' }

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.4.10.0030.00619.72
8.3.140.0080.00016.72
8.3.130.0050.00316.66
8.3.120.0110.00719.11
8.3.110.0000.00820.94
8.3.100.0150.00424.06
8.3.90.0040.00426.77
8.3.80.0040.00418.43
8.3.70.0090.01216.75
8.3.60.0100.01416.74
8.3.50.0060.00817.41
8.3.40.0070.00718.54
8.3.30.0110.01118.65
8.3.20.0070.00020.16
8.3.10.0060.00323.65
8.3.00.0070.00023.65
8.2.260.0040.00418.32
8.2.250.0000.00818.49
8.2.240.0030.00618.88
8.2.230.0000.00822.58
8.2.220.0090.00037.54
8.2.210.0080.00026.77
8.2.200.0090.00016.75
8.2.190.0140.00316.58
8.2.180.0040.01118.66
8.2.170.0140.00022.96
8.2.160.0100.00719.46
8.2.150.0090.00025.66
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00719.83
8.2.110.0070.00322.11
8.2.100.0030.00817.91
8.2.90.0030.00617.84
8.2.80.0040.00419.24
8.2.70.0050.00317.63
8.2.60.0050.00817.77
8.2.50.0070.00617.58
8.2.40.0080.00418.56
8.2.30.0100.00218.34
8.2.20.0120.00017.83
8.2.10.0100.00317.84
8.2.00.0090.00517.66
8.1.300.0050.00318.31
8.1.290.0040.00430.84
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00719.19
8.1.230.0000.01120.95
8.1.220.0050.00317.88
8.1.210.0050.00318.77
8.1.200.0090.00017.11
8.1.190.0100.00217.36
8.1.180.0060.00617.49
8.1.170.0080.00417.37
8.1.160.0070.00517.92
8.1.150.0090.00418.61
8.1.140.0090.00417.82
8.1.130.0110.00417.78
8.1.120.0110.00517.45
8.1.110.0100.00617.41
8.1.100.0070.00717.41
8.1.90.0110.00317.42
8.1.80.0080.00517.43
8.1.70.0100.00417.40
8.1.60.0110.00517.56
8.1.50.0060.01017.46
8.1.40.0110.00517.44
8.1.30.0120.00417.54
8.1.20.0130.00417.55
8.1.10.0100.00517.34
8.1.00.0110.00417.35
8.0.300.0060.00320.04
8.0.290.0080.00016.63
8.0.280.0080.00417.62
8.0.270.0090.00217.23
8.0.260.0100.00116.82
8.0.250.0090.00416.86
8.0.240.0080.00616.84
8.0.230.0070.00616.88
8.0.220.0100.00216.87
8.0.210.0080.00316.72
8.0.200.0090.00316.88
8.0.190.0070.00416.87
8.0.180.0080.00216.83
8.0.170.0080.00316.89
8.0.160.0060.00516.83
8.0.150.0070.00516.74
8.0.140.0050.00716.85
8.0.130.0080.00415.90
8.0.120.0090.00416.72
8.0.110.0110.00216.81
8.0.100.0050.00616.79
8.0.90.0090.00416.79
8.0.80.0080.00616.81
8.0.70.0110.00216.78
8.0.60.0110.00316.78
8.0.50.0090.00416.73
8.0.30.0090.00716.90
8.0.20.0100.00817.13
8.0.10.0080.00416.87
8.0.00.0120.00416.84
7.4.330.0050.00516.00
7.4.320.0090.00516.41
7.4.300.0090.00416.53
7.4.290.0080.00716.44
7.4.280.0080.00616.50
7.4.270.0110.00316.52
7.4.260.0100.00516.50
7.4.250.0120.00216.48
7.4.240.0070.00716.46
7.4.230.0100.00516.49
7.4.220.0120.00416.47
7.4.210.0100.00616.46
7.4.200.0090.00416.51
7.4.190.0080.00616.54
7.4.180.0070.00816.52
7.4.160.0090.00616.50
7.4.150.0110.00416.67
7.4.140.0110.00717.24
7.4.130.0100.00516.48
7.4.120.0110.00616.53
7.4.110.0110.00416.47
7.4.100.0070.00816.50
7.4.90.0110.00416.47
7.4.80.0090.00617.12
7.4.70.0130.00316.34
7.4.60.0090.00616.42
7.4.50.0110.00416.40
7.4.40.0100.00616.41
7.4.30.0090.00716.47
7.4.20.0080.00616.37
7.4.10.0080.00616.40
7.4.00.0070.00715.75
7.3.330.0080.00515.58
7.3.320.0090.00415.51
7.3.310.0090.00416.32
7.3.300.0080.00516.37
7.3.290.0080.00716.35
7.3.280.0090.00816.35
7.3.270.0090.00616.66
7.3.260.0110.00716.45
7.3.250.0100.00816.42
7.3.240.0130.00416.43
7.3.230.0100.00516.34
7.3.220.0150.00016.35
7.3.210.0130.00216.37
7.3.200.0100.00516.34
7.3.190.0100.00516.41
7.3.180.0110.00416.36
7.3.170.0080.00816.38
7.3.160.0100.00616.43
7.3.150.0130.00216.34
7.3.140.0110.00416.34
7.3.130.0130.00216.31
7.3.120.0100.00615.75
7.3.110.0120.00515.68
7.3.100.0110.00515.64
7.3.90.0100.00415.74
7.3.80.0100.00315.73
7.3.70.0100.00315.71
7.3.60.0110.00415.62
7.3.50.0070.00715.72
7.3.40.0120.00215.68
7.3.30.0070.00615.72
7.3.20.0130.00316.49
7.3.10.0090.00616.45
7.3.00.0090.00516.44
7.2.340.0090.00616.30
7.2.330.0090.00716.46
7.2.320.0110.00516.34
7.2.310.0110.00416.41
7.2.300.0100.00616.37
7.2.290.0100.00616.31
7.2.280.0090.00516.31
7.2.270.0090.00616.29
7.2.260.0140.00116.33
7.2.250.0100.00615.75
7.2.240.0080.00915.64
7.2.230.0120.00215.77
7.2.220.0070.00815.84
7.2.210.0100.00315.77
7.2.200.0090.00715.81
7.2.190.0080.00715.80
7.2.180.0080.00515.77
7.2.170.0080.00615.88
7.2.160.0080.00616.08
7.2.150.0130.00316.66
7.2.140.0190.00516.58
7.2.130.0180.00316.66
7.2.120.0120.00216.61
7.2.110.0110.00516.56
7.2.100.0100.00616.47
7.2.90.0130.00416.52
7.2.80.0090.00616.59
7.2.70.0090.00616.73
7.2.60.0170.00616.68
7.2.50.0080.00816.67
7.2.40.0100.00516.74
7.2.30.0090.00816.58
7.2.20.0120.00516.88
7.2.10.0090.00816.84
7.2.00.0110.00616.84
7.1.330.0070.00715.93
7.1.320.0080.00615.99
7.1.310.0100.00415.98
7.1.300.0080.00515.87
7.1.290.0090.00616.02
7.1.280.0100.00415.93
7.1.270.0080.00615.96
7.1.260.0150.00415.98
7.1.250.0130.00816.00
7.1.240.0120.00215.98
7.1.230.0090.00615.92
7.1.220.0090.00615.92
7.1.210.0090.00615.97
7.1.200.0120.00615.91
7.1.190.0100.00515.89
7.1.180.0130.00615.94
7.1.170.0080.00715.94
7.1.160.0090.00615.90
7.1.150.0080.00615.93
7.1.140.0110.00416.06
7.1.130.0110.00516.05
7.1.120.0130.00615.99
7.1.110.0210.00616.00
7.1.100.0120.00715.91
7.1.90.0110.00915.97
7.1.80.0140.00515.96
7.1.70.0150.00415.65
7.1.60.0190.00620.84
7.1.50.0210.00920.51
7.1.40.0220.00720.35
7.1.30.0280.00920.41
7.1.20.0270.00620.42
7.1.10.0160.00715.28
7.1.00.0210.00715.35
7.0.330.0090.00515.95
7.0.320.0060.00915.94
7.0.310.0090.00615.85
7.0.300.0100.00615.76
7.0.290.0090.00815.84
7.0.280.0090.00515.80
7.0.270.0110.00515.75
7.0.260.0090.00815.87
7.0.250.0110.00715.85
7.0.240.0110.00715.88
7.0.230.0150.00515.83
7.0.220.0150.00615.74
7.0.210.0100.00915.54
7.0.200.0130.00515.48
7.0.190.0150.00615.30
7.0.180.0200.00615.10
7.0.170.0180.00715.22
7.0.160.0190.00715.19
7.0.150.0180.00815.19
7.0.140.0120.00815.18
7.0.130.0160.00715.30
7.0.120.0200.00515.26
7.0.110.0340.00715.23
7.0.100.0160.00715.20
7.0.90.0180.00715.17
7.0.80.0160.00915.20
7.0.70.0200.00615.16
7.0.60.0140.00715.11
7.0.50.0160.00515.23
7.0.40.0170.00714.88
7.0.30.0160.00714.89
7.0.20.0130.00715.21
7.0.10.0150.00615.12
7.0.00.0140.00715.12
5.6.400.0110.00215.69
5.6.390.0090.00515.61
5.6.380.0080.00615.46
5.6.370.0080.00615.29
5.6.360.0080.00515.37
5.6.350.0080.00515.27
5.6.340.0110.00315.34
5.6.330.0090.00715.40
5.6.320.0080.00615.36
5.6.310.0090.00515.39
5.6.300.0080.02816.97
5.6.290.0110.02316.90
5.6.280.0140.01816.94
5.6.270.0080.02516.99
5.6.260.0100.02516.93
5.6.250.0100.02416.91
5.6.240.0120.02216.92
5.6.230.0110.02816.93
5.6.220.0110.02616.88
5.6.210.0090.02516.98
5.6.200.0120.02116.95
5.6.190.0120.02816.96
5.6.180.0130.01916.89
5.6.170.0120.02216.97
5.6.160.0120.02316.97
5.6.150.0110.02216.93
5.6.140.0100.02116.94
5.6.130.0110.02116.93
5.6.120.0110.02116.90
5.6.110.0140.02616.87
5.6.100.0120.02016.86
5.6.90.0120.02016.87
5.6.80.0110.02316.71
5.6.70.0110.02216.73
5.6.60.0120.02216.64
5.6.50.0100.02416.73
5.6.40.0100.02516.76
5.6.30.0120.01816.73
5.6.20.0110.02116.68
5.6.10.0100.02316.73
5.6.00.0120.02516.66

preferences:
16.9 ms | 403 KiB | 5 Q