3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($text = "Bar") { echo "\r\n$text"; } // Pass the function to the array. Do not use () here. $array = array( 'func' => "foo" ); // And call it. $array['func'](); // Outputs: "Bar" $array['func']("Foo Bar"); // Outputs: "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.0150.00418.30
8.3.50.0050.01122.05
8.3.40.0120.00318.84
8.3.30.0140.00018.84
8.3.20.0060.00318.77
8.3.10.0040.00421.09
8.3.00.0000.00721.95
8.2.180.0100.00716.63
8.2.170.0070.01022.96
8.2.160.0000.01320.38
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00019.77
8.2.110.0070.00420.39
8.2.100.0080.00417.84
8.2.90.0080.00019.30
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00418.05
8.2.50.0080.00818.07
8.2.40.0040.00418.22
8.2.30.0000.00719.42
8.2.20.0000.00817.61
8.2.10.0040.00417.55
8.2.00.0030.00717.56
8.1.280.0140.00025.92
8.1.270.0070.00023.99
8.1.260.0120.00626.35
8.1.250.0050.00228.09
8.1.240.0030.00622.54
8.1.230.0070.00421.04
8.1.220.0050.00318.77
8.1.210.0000.00818.84
8.1.200.0060.00317.35
8.1.190.0000.00717.39
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00718.78
8.1.150.0040.00418.59
8.1.140.0040.00417.38
8.1.130.0050.00317.83
8.1.120.0030.00417.30
8.1.110.0050.00317.26
8.1.100.0040.00417.40
8.1.90.0000.00717.39
8.1.80.0000.00717.38
8.1.70.0070.00017.37
8.1.60.0070.00017.56
8.1.50.0060.00317.49
8.1.40.0000.00817.55
8.1.30.0040.00417.68
8.1.20.0060.00317.63
8.1.10.0000.00717.49
8.1.00.0040.00417.40
8.0.300.0050.00320.02
8.0.290.0000.00817.18
8.0.280.0000.00718.36
8.0.270.0000.00717.20
8.0.260.0080.00016.87
8.0.250.0040.00416.98
8.0.240.0050.00516.99
8.0.230.0030.00316.94
8.0.220.0000.00716.90
8.0.210.0070.00016.85
8.0.200.0000.00616.95
8.0.190.0070.00016.98
8.0.180.0000.00716.88
8.0.170.0030.00516.93
8.0.160.0000.00716.89
8.0.150.0040.00416.91
8.0.140.0070.00016.88
8.0.130.0000.00613.25
8.0.120.0000.00716.85
8.0.110.0000.00816.85
8.0.100.0070.00016.84
8.0.90.0000.00716.84
8.0.80.0080.00816.78
8.0.70.0040.00416.93
8.0.60.0000.00716.71
8.0.50.0000.00816.64
8.0.30.0140.00817.26
8.0.20.0060.01217.40
8.0.10.0040.00417.07
8.0.00.0070.01016.65
7.4.330.0050.00016.77
7.4.320.0000.00616.40
7.4.300.0070.00016.58
7.4.290.0030.00316.59
7.4.280.0050.00216.56
7.4.270.0050.00316.60
7.4.260.0000.00513.21
7.4.250.0080.00016.60
7.4.240.0050.00216.46
7.4.230.0040.00416.36
7.4.220.0130.01016.53
7.4.210.0080.01016.61
7.4.200.0050.00216.40
7.4.190.0040.00416.77
7.4.160.0130.00316.30
7.4.150.0110.00717.40
7.4.140.0100.01017.86
7.4.130.0100.00816.47
7.4.120.0090.00816.54
7.4.110.0040.01216.45
7.4.100.0130.00316.40
7.4.90.0090.00916.43
7.4.80.0100.00719.39
7.4.70.0070.01416.37
7.4.60.0140.00316.58
7.4.50.0030.00516.25
7.4.40.0070.01022.77
7.4.30.0150.00416.50
7.4.10.0030.01614.96
7.4.00.0040.01314.74
7.3.330.0070.00013.27
7.3.320.0070.00013.30
7.3.310.0000.00816.20
7.3.300.0000.00716.15
7.3.290.0140.00016.29
7.3.280.0070.00916.31
7.3.270.0110.00617.40
7.3.260.0080.00918.24
7.3.250.0070.01016.51
7.3.240.0060.00916.64
7.3.230.0060.01016.39
7.3.210.0030.01316.54
7.3.200.0110.00619.39
7.3.190.0090.00916.36
7.3.180.0100.00716.52
7.3.170.0030.01516.27
7.3.160.0150.00616.56
7.3.130.0040.01814.57
7.3.120.0070.00914.90
7.3.110.0080.01014.91
7.3.100.0070.01014.75
7.3.90.0100.00314.97
7.3.80.0060.00515.09
7.3.70.0070.00514.76
7.3.60.0050.00714.73
7.3.50.0070.00714.80
7.3.40.0050.01014.66
7.3.30.0050.00614.67
7.3.20.0050.01016.56
7.3.10.0060.00716.66
7.3.00.0030.01116.46
7.2.330.0090.00916.62
7.2.320.0070.01016.73
7.2.310.0090.00916.40
7.2.300.0110.01116.77
7.2.290.0130.00916.76
7.2.260.0040.01414.91
7.2.250.0090.00915.04
7.2.240.0090.00815.19
7.2.230.0060.01014.97
7.2.220.0020.01314.92
7.2.210.0050.01114.91
7.2.200.0100.00314.89
7.2.190.0030.01314.84
7.2.180.0040.01115.03
7.2.170.0040.01014.74
7.2.160.0070.00614.85
7.2.150.0030.00816.81
7.2.140.0080.00816.84
7.2.130.0040.01116.69
7.2.120.0060.00716.83
7.2.110.0050.00916.94
7.2.100.0040.00916.84
7.2.90.0070.00716.89
7.2.80.0060.00716.81
7.2.70.0070.00816.79
7.2.60.0050.00816.94
7.2.50.0080.00516.75
7.2.40.0060.00816.76
7.2.30.0070.00716.76
7.2.20.0030.00916.91
7.2.10.0040.00816.80
7.2.00.0080.00717.59
7.1.330.0090.00515.88
7.1.320.0060.01115.76
7.1.310.0030.00715.67
7.1.300.0090.00615.75
7.1.290.0020.01215.79
7.1.280.0060.00615.76
7.1.270.0090.00515.71
7.1.260.0090.00515.43
7.1.250.0040.00615.71
7.1.240.0070.00315.72
7.1.230.0100.00315.68
7.1.220.0020.01215.68
7.1.210.0070.00615.59
7.1.200.0060.00715.77
7.1.190.0070.00715.54
7.1.180.0020.01015.69
7.1.170.0050.00815.50
7.1.160.0060.00615.63
7.1.150.0040.00815.76
7.1.140.0050.00915.59
7.1.130.0100.00515.48
7.1.120.0120.00215.72
7.1.110.0070.00715.76
7.1.100.0050.00716.31
7.1.90.0050.00815.81
7.1.80.0030.01215.91
7.1.70.0060.00416.23
7.1.60.0060.01116.98
7.1.50.0090.00716.10
7.1.40.0030.00715.55
7.1.30.0030.00815.73
7.1.20.0050.00815.75
7.1.10.0060.00515.72
7.1.00.0060.02517.81
7.0.330.0060.00615.31
7.0.320.0090.00315.32
7.0.310.0050.00915.35
7.0.300.0030.00615.37
7.0.290.0070.00515.44
7.0.280.0020.00715.49
7.0.270.0010.00915.31
7.0.260.0030.01215.30
7.0.250.0030.01315.29
7.0.240.0030.00815.56
7.0.230.0030.01015.25
7.0.220.0060.00715.51
7.0.210.0050.00815.35
7.0.200.0060.00715.86
7.0.190.0080.00615.46
7.0.180.0050.00915.49
7.0.170.0040.00515.47
7.0.160.0030.01015.41
7.0.150.0030.01015.46
7.0.140.0070.02917.68
7.0.130.0020.00815.27
7.0.120.0090.00515.60
7.0.110.0120.02816.86
7.0.100.0050.03216.86
7.0.90.0060.02916.82
7.0.80.0080.02916.98
7.0.70.0030.03216.76
7.0.60.0060.02716.89
7.0.50.0080.02817.13
7.0.40.0040.02215.73
7.0.30.0040.03115.73
7.0.20.0060.03215.59
7.0.10.0110.02515.60
7.0.00.0110.02515.67
5.6.400.0020.01314.25
5.6.390.0080.00514.51
5.6.380.0060.00814.37
5.6.370.0050.00414.45
5.6.360.0060.00614.31
5.6.350.0030.01014.62
5.6.340.0040.01114.36
5.6.330.0060.00614.31
5.6.320.0080.00414.63
5.6.310.0050.00914.59
5.6.300.0080.00614.39
5.6.290.0050.00714.26
5.6.280.0020.03116.61
5.6.270.0000.01014.54
5.6.260.0080.02916.50
5.6.250.0070.02816.48
5.6.240.0100.02316.52
5.6.230.0050.02316.54
5.6.220.0050.03016.44
5.6.210.0090.02716.46
5.6.200.0070.02916.60
5.6.190.0040.03216.57
5.6.180.0100.02616.50
5.6.170.0060.02216.70
5.6.160.0040.03216.44
5.6.150.0050.02916.68
5.6.140.0080.02516.63
5.6.130.0070.03216.63
5.6.120.0070.02916.52
5.6.110.0070.03316.65
5.6.100.0040.03516.58
5.6.90.0090.02916.54
5.6.80.0090.02816.41
5.6.70.0070.02616.30
5.6.60.0110.02916.29
5.6.50.0080.03116.33
5.6.40.0060.03116.34
5.6.30.0090.03016.25
5.6.20.0070.02816.39
5.6.10.0050.03116.28
5.6.00.0080.03116.46
5.5.380.0050.03116.36
5.5.370.0100.02816.33
5.5.360.0120.01516.59
5.5.350.0090.02916.15
5.5.340.0080.03116.58
5.5.330.0120.02816.34
5.5.320.0070.03016.53
5.5.310.0090.03016.46
5.5.300.0070.03016.61
5.5.290.0050.02916.56
5.5.280.0060.03216.41
5.5.270.0070.01816.42
5.5.260.0040.03416.51
5.5.250.0090.03116.42
5.5.240.0060.03216.22
5.5.230.0050.03616.37
5.5.220.0060.02416.32
5.5.210.0050.02916.28
5.5.200.0120.02616.38
5.5.190.0060.03316.28
5.5.180.0060.02816.31
5.5.170.0050.00714.29
5.5.160.0060.03116.13
5.5.150.0110.02416.16
5.5.140.0090.02716.14
5.5.130.0050.03016.15
5.5.120.0060.03016.42
5.5.110.0060.03516.11
5.5.100.0100.02916.15
5.5.90.0130.02516.30
5.5.80.0030.02416.25
5.5.70.0080.02916.19
5.5.60.0090.02816.29
5.5.50.0090.02716.12
5.5.40.0060.03316.18
5.5.30.0050.03216.17
5.5.20.0090.03116.36
5.5.10.0090.01816.14
5.5.00.0070.03116.10
5.4.450.0040.03215.08
5.4.440.0030.03115.03
5.4.430.0050.02614.97
5.4.420.0070.01914.98
5.4.410.0040.03014.92
5.4.400.0050.02714.97
5.4.390.0070.02814.87
5.4.380.0060.03114.92
5.4.370.0060.02414.92
5.4.360.0070.02614.92
5.4.350.0020.02914.92
5.4.340.0010.03014.84
5.4.330.0050.00712.79
5.4.320.0070.02814.85
5.4.310.0040.02914.87
5.4.300.0090.02414.84
5.4.290.0050.02614.86
5.4.280.0060.03114.97
5.4.270.0070.02914.94
5.4.260.0080.02814.86
5.4.250.0090.02414.97
5.4.240.0010.03314.97
5.4.230.0060.03014.86
5.4.220.0050.02914.86
5.4.210.0040.03414.86
5.4.200.0060.02214.97
5.4.190.0060.03014.86
5.4.180.0070.02714.84
5.4.170.0090.02914.86
5.4.160.0040.02114.91
5.4.150.0030.03014.84
5.4.140.0030.03014.04
5.4.130.0050.02714.05
5.4.120.0040.02913.98
5.4.110.0080.02414.06
5.4.100.0080.02614.00
5.4.90.0020.03113.97
5.4.80.0030.02614.02
5.4.70.0090.02414.05
5.4.60.0080.02814.03
5.4.50.0080.02614.01
5.4.40.0070.02614.06
5.4.30.0060.02114.05
5.4.20.0030.03014.04
5.4.10.0060.02614.01
5.4.00.0100.01813.88
5.3.290.0070.02613.42
5.3.280.0060.02913.39
5.3.270.0080.02813.42
5.3.260.0020.02213.44
5.3.250.0050.01913.47
5.3.240.0070.02813.43
5.3.230.0050.01813.35
5.3.220.0060.02713.46
5.3.210.0050.02813.34
5.3.200.0090.01913.39
5.3.190.0030.01813.43
5.3.180.0030.02713.41
5.3.170.0030.03013.34
5.3.160.0060.02813.46
5.3.150.0040.02913.46
5.3.140.0050.02513.41
5.3.130.0060.03013.38
5.3.120.0030.03213.41
5.3.110.0070.02413.37
5.3.100.0050.02713.25
5.3.90.0070.02113.25
5.3.80.0030.02513.20
5.3.70.0050.02813.25
5.3.60.0060.03113.27
5.3.50.0040.03013.17
5.3.40.0060.02713.17
5.3.30.0050.02713.18
5.3.20.0010.03113.13
5.3.10.0050.01713.08
5.3.00.0040.02613.07
5.2.170.0030.04013.06
5.2.160.0030.06013.06
5.2.150.0100.06013.06
5.2.140.0030.06313.06
5.2.130.0130.05013.06
5.2.120.0030.06013.06
5.2.110.0070.06013.06
5.2.100.0000.04313.06
5.2.90.0070.05713.06
5.2.80.0100.05713.06
5.2.70.0000.06713.06
5.2.60.0030.06713.06
5.2.50.0070.06713.06
5.2.40.0070.05013.06
5.2.30.0070.06013.06
5.2.20.0000.06313.06
5.2.10.0030.06013.06
5.2.00.0070.06013.06
5.1.60.0100.04313.06
5.1.50.0000.05713.06
5.1.40.0070.05313.06
5.1.30.0070.05313.06
5.1.20.0030.05313.06
5.1.10.0030.05013.06
5.1.00.0100.04013.06
5.0.50.0030.03013.06
5.0.40.0000.04313.06
5.0.30.0070.03713.06
5.0.20.0030.03713.06
5.0.10.0030.04313.06
5.0.00.0070.03713.06
4.4.90.0030.03013.06
4.4.80.0070.03313.06
4.4.70.0000.03713.06
4.4.60.0030.03713.06
4.4.50.0070.03313.06
4.4.40.0000.04713.06
4.4.30.0000.03713.06
4.4.20.0030.02013.06
4.4.10.0000.03313.06
4.4.00.0000.06013.06
4.3.110.0000.03313.06
4.3.100.0070.03013.06
4.3.90.0000.03713.06
4.3.80.0030.05313.06
4.3.70.0030.03013.06
4.3.60.0000.03713.06
4.3.50.0000.03713.06
4.3.40.0030.05313.06
4.3.30.0000.03713.06
4.3.20.0070.03013.06
4.3.10.0000.02713.06
4.3.00.0000.03713.06

preferences:
63.41 ms | 401 KiB | 5 Q