3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "my_func" => function($param = "no parameter"){ echo "In my function. Parameter: ".$param; } ); //check if there is some function or method if( is_callable( $a["my_func"] ) ) $a["my_func"]();

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.0080.00816.50
8.3.50.0080.01122.85
8.3.40.0040.01118.82
8.3.30.0100.00319.17
8.3.20.0070.00020.35
8.3.10.0040.00421.90
8.3.00.0090.00017.63
8.2.180.0110.00716.50
8.2.170.0150.00322.96
8.2.160.0100.00320.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.94
8.2.110.0060.00322.18
8.2.100.0090.00318.03
8.2.90.0030.00619.13
8.2.80.0080.00017.97
8.2.70.0030.00617.63
8.2.60.0100.00017.91
8.2.50.0030.00618.07
8.2.40.0000.00818.27
8.2.30.0040.00418.11
8.2.20.0030.00517.71
8.2.10.0040.00418.11
8.2.00.0040.00417.79
8.1.280.0110.00425.92
8.1.270.0110.00723.90
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0080.00319.02
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.24
8.1.190.0050.00317.22
8.1.180.0080.00018.10
8.1.170.0040.00418.50
8.1.160.0000.00722.00
8.1.150.0040.00418.89
8.1.140.0000.00817.41
8.1.130.0070.00017.82
8.1.120.0030.00317.36
8.1.110.0000.00917.47
8.1.100.0030.00417.34
8.1.90.0000.00717.47
8.1.80.0030.00317.41
8.1.70.0000.00717.43
8.1.60.0060.00317.54
8.1.50.0050.00317.41
8.1.40.0050.00317.49
8.1.30.0030.00617.54
8.1.20.0080.00017.63
8.1.10.0080.00017.45
8.1.00.0000.00817.42
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0040.00418.45
8.0.270.0030.00317.27
8.0.260.0030.00517.17
8.0.250.0070.00016.99
8.0.240.0000.00716.84
8.0.230.0030.00316.77
8.0.220.0030.00316.78
8.0.210.0030.00316.77
8.0.200.0060.00017.00
8.0.190.0070.00016.86
8.0.180.0040.00416.80
8.0.170.0030.00516.90
8.0.160.0000.00716.95
8.0.150.0080.00016.80
8.0.140.0040.00416.84
8.0.130.0050.00013.34
8.0.120.0040.00416.85
8.0.110.0020.00516.81
8.0.100.0080.00016.71
8.0.90.0030.00316.73
8.0.80.0060.01216.87
8.0.70.0000.00716.83
8.0.60.0040.00416.88
8.0.50.0000.00716.94
8.0.30.0060.01217.30
8.0.20.0100.00917.40
8.0.10.0040.00317.06
8.0.00.0090.00817.02
7.4.330.0000.00515.09
7.4.320.0060.00016.40
7.4.300.0060.00016.50
7.4.290.0000.00716.48
7.4.280.0000.00816.45
7.4.270.0030.00316.64
7.4.260.0030.00516.48
7.4.250.0030.00416.38
7.4.240.0020.00516.56
7.4.230.0030.00316.61
7.4.220.0140.00416.62
7.4.210.0040.01116.66
7.4.200.0030.00316.63
7.4.160.0060.00916.61
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0110.00516.51
7.4.120.0120.00916.47
7.4.110.0130.00716.59
7.4.100.0030.01316.59
7.4.90.0180.00016.57
7.4.80.0140.00719.39
7.4.70.0120.01216.40
7.4.60.0100.01016.53
7.4.50.0060.00016.34
7.4.40.0050.01116.57
7.4.30.0130.00316.59
7.4.10.0070.01115.12
7.4.00.0080.01014.72
7.3.330.0000.00713.22
7.3.320.0060.00013.33
7.3.310.0000.00616.24
7.3.300.0070.00016.32
7.3.290.0090.00616.30
7.3.280.0040.01216.29
7.3.270.0150.00317.40
7.3.260.0150.00316.59
7.3.250.0100.00716.37
7.3.240.0150.00716.59
7.3.230.0060.01016.49
7.3.210.0120.00816.47
7.3.200.0040.01119.39
7.3.190.0030.01516.50
7.3.180.0160.00016.54
7.3.170.0080.00816.40
7.3.160.0090.00616.42
7.3.130.0120.00614.50
7.3.120.0030.01514.72
7.3.110.0030.01214.84
7.3.100.0080.00714.72
7.3.90.0040.01214.66
7.3.80.0020.01314.75
7.3.70.0030.00914.77
7.3.60.0040.00814.83
7.3.50.0030.00814.94
7.3.40.0060.01014.85
7.3.30.0100.00414.97
7.3.20.0040.00916.80
7.3.10.0080.00516.67
7.3.00.0060.01016.47
7.2.330.0140.00316.63
7.2.320.0170.00616.64
7.2.310.0110.00716.65
7.2.300.0090.01216.50
7.2.290.0150.00316.59
7.2.260.0100.01015.28
7.2.250.0100.00915.02
7.2.240.0080.00814.85
7.2.230.0080.00614.96
7.2.220.0030.00814.82
7.2.210.0030.01015.13
7.2.200.0070.00514.93
7.2.190.0050.00814.97
7.2.180.0030.00915.20
7.2.170.0050.00914.88
7.2.160.0060.01015.09
7.2.150.0090.00317.00
7.2.140.0040.00816.85
7.2.130.0120.00316.96
7.2.120.0090.00417.00
7.2.110.0030.00716.99
7.2.100.0070.01016.90
7.2.90.0040.00717.14
7.2.80.0060.00616.78
7.2.70.0090.00616.95
7.2.60.0120.00316.75
7.2.50.0080.00816.79
7.2.40.0060.00616.75
7.2.30.0100.00716.80
7.2.20.0030.00616.85
7.2.10.0090.00617.00
7.2.00.0040.01217.00
7.1.330.0080.00715.72
7.1.320.0060.00615.71
7.1.310.0050.00815.95
7.1.300.0050.00615.77
7.1.290.0050.00815.66
7.1.280.0050.00815.78
7.1.270.0030.01015.81
7.1.260.0040.01115.88
7.1.250.0000.01015.36
7.1.240.0060.00616.01
7.1.230.0080.00415.50
7.1.220.0090.00615.60
7.1.210.0060.00315.77
7.1.200.0100.00315.70
7.1.190.0030.01015.52
7.1.180.0000.01415.75
7.1.170.0090.00315.61
7.1.160.0030.00915.64
7.1.150.0050.00515.49
7.1.140.0070.00315.80
7.1.130.0040.00415.80
7.1.120.0090.00315.85
7.1.110.0060.00615.92
7.1.100.0030.01015.81
7.1.90.0030.00715.77
7.1.80.0000.01015.66
7.1.70.0070.00516.51
7.1.60.0050.00716.58
7.1.50.0080.01116.28
7.1.40.0030.01015.56
7.1.30.0060.00615.83
7.1.20.0030.00915.70
7.1.10.0000.00915.62
7.1.00.0020.04619.03
7.0.330.0000.01315.43
7.0.320.0030.00915.07
7.0.310.0080.00615.63
7.0.300.0060.00315.45
7.0.290.0060.00615.41
7.0.280.0080.00315.22
7.0.270.0000.00815.43
7.0.260.0030.00715.18
7.0.250.0040.00815.29
7.0.240.0030.01015.24
7.0.230.0040.00715.44
7.0.220.0030.00615.39
7.0.210.0000.00715.25
7.0.200.0060.00615.88
7.0.190.0040.01215.63
7.0.180.0090.00015.31
7.0.170.0060.00615.24
7.0.160.0070.00315.30
7.0.150.0070.00415.40
7.0.140.0050.04018.63
7.0.130.0060.00615.29
7.0.120.0090.00315.47
7.0.110.0030.00615.25
7.0.100.0070.00715.35
7.0.90.0040.00415.23
7.0.80.0030.00915.57
7.0.70.0040.00415.10
7.0.60.0080.03817.51
7.0.50.0050.04716.70
7.0.40.0060.04116.99
7.0.30.0170.02916.98
7.0.20.0180.03617.00
7.0.10.0070.04017.03
7.0.00.0030.05017.04
5.6.400.0060.00614.35
5.6.390.0030.01014.49
5.6.380.0090.00614.07
5.6.370.0060.00814.44
5.6.360.0100.00014.25
5.6.350.0000.01314.66
5.6.340.0000.01414.33
5.6.330.0060.00614.24
5.6.320.0060.00914.33
5.6.310.0000.00714.54
5.6.300.0060.00814.34
5.6.290.0040.01114.16
5.6.280.0070.03717.92
5.6.270.0000.01614.50
5.6.260.0070.00714.10
5.6.250.0100.00314.29
5.6.240.0000.01114.59
5.6.230.0080.00414.29
5.6.220.0060.00614.45
5.6.210.0050.04317.70
5.6.200.0030.03416.12
5.6.190.0040.02917.40
5.6.180.0220.03517.62
5.6.170.0180.04217.45
5.6.160.0050.04317.61
5.6.150.0110.02116.37
5.6.140.0070.03416.27
5.6.130.0050.04716.19
5.6.120.0030.03817.55
5.6.110.0100.04317.65
5.6.100.0070.03517.71
5.6.90.0110.04517.70
5.6.80.0030.04017.40
5.6.70.0040.01414.26
5.6.60.0110.00414.46
5.6.50.0030.00614.31
5.6.40.0040.01214.04
5.6.30.0040.00414.32
5.6.20.0060.00914.07
5.6.10.0080.00414.35
5.6.00.0000.01114.23
5.5.380.0000.01314.22
5.5.370.0040.01114.35
5.5.360.0130.00314.33
5.5.350.2170.02317.19
5.5.340.0100.04316.17
5.5.330.0050.03317.39
5.5.320.0140.04517.43
5.5.310.0230.03817.34
5.5.300.0090.04216.19
5.5.290.0070.03215.99
5.5.280.0050.03217.37
5.5.270.0150.03817.51
5.5.260.0110.04017.58
5.5.250.0100.04117.52
5.5.240.0050.04317.31
5.5.230.0120.00414.38
5.5.220.0040.01114.30
5.5.210.0030.00714.14
5.5.200.0040.00714.36
5.5.190.0070.00714.35
5.5.180.0110.00414.48
5.5.170.0140.00014.54
5.5.160.0000.00814.06
5.5.150.0000.01214.10
5.5.140.0090.00314.06
5.5.130.0030.00614.25
5.5.120.0060.00614.43
5.5.110.0080.00814.12
5.5.100.0030.00614.45
5.5.90.0030.01314.07
5.5.80.0000.00914.18
5.5.70.0030.00614.18
5.5.60.0030.00714.42
5.5.50.0000.01514.40
5.5.40.0040.01114.25
5.5.30.0040.01114.43
5.5.20.0060.01014.34
5.5.10.0000.01114.06
5.5.00.0030.00914.28
5.4.450.0530.04616.68
5.4.440.0440.02816.63
5.4.430.0280.03016.76
5.4.420.0300.03816.76
5.4.410.0380.02816.64
5.4.400.0330.03316.55
5.4.390.0330.03216.51
5.4.380.0070.03316.35
5.4.370.0030.02416.17
5.4.360.0030.02416.23
5.4.350.0050.02412.96
5.4.340.0050.02712.96
5.4.330.0000.00813.89
5.4.320.0070.02213.20
5.4.310.0060.02313.20
5.4.300.0090.02013.20
5.4.290.0080.02113.20
5.4.280.0060.02013.14
5.4.270.0050.02713.14
5.4.260.0020.02513.15
5.4.250.0060.01913.15
5.4.240.0060.02013.14
5.4.230.0040.02313.14
5.4.220.0050.02113.14
5.4.210.0040.02113.14
5.4.200.0070.02213.14
5.4.190.0060.02213.14
5.4.180.0040.02213.14
5.4.170.0020.02513.14
5.4.160.0070.02013.14
5.4.150.0050.02013.14
5.4.140.0040.02512.98
5.4.130.0080.02512.98
5.4.120.0070.02012.96
5.4.110.0060.02112.95
5.4.100.0080.02312.95
5.4.90.0120.03012.95
5.4.80.0040.02912.95
5.4.70.0060.01912.95
5.4.60.0070.01812.95
5.4.50.0050.01912.95
5.4.40.0040.02112.94
5.4.30.0100.03012.94
5.4.20.0070.02112.95
5.4.10.0040.02512.95
5.4.00.0050.02712.69
5.3.290.0090.04812.80
5.3.280.0100.04112.71
5.3.270.0110.03612.73
5.3.260.0080.03912.72
5.3.250.0070.03712.72
5.3.240.0060.03812.72
5.3.230.0090.03612.71
5.3.220.0070.03712.68
5.3.210.0080.03812.68
5.3.200.0070.03712.68
5.3.190.0090.03612.68
5.3.180.0050.04312.67
5.3.170.0060.04312.67
5.3.160.0090.04112.67
5.3.150.0080.03712.67
5.3.140.0040.04012.66
5.3.130.0080.03712.66
5.3.120.0080.05312.66
5.3.110.0060.03912.66
5.3.100.0080.04112.12
5.3.90.0060.03712.10
5.3.80.0060.03712.09
5.3.70.0030.04012.09
5.3.60.0040.03912.08
5.3.50.0080.03912.02
5.3.40.0030.04112.02
5.3.30.0070.04111.97
5.3.20.0060.03911.75
5.3.10.0060.04511.73
5.3.00.0060.04811.71
5.2.170.0050.0409.18
5.2.160.0050.0339.18
5.2.150.0060.0439.18
5.2.140.0130.0369.18
5.2.130.0070.0369.14
5.2.120.0030.0429.14
5.2.110.0040.0439.14
5.2.100.0060.0329.14
5.2.90.0040.0319.14
5.2.80.0050.0309.14
5.2.70.0060.0309.14
5.2.60.0060.0309.09
5.2.50.0090.0349.05
5.2.40.0050.0309.04
5.2.30.0060.0309.02
5.2.20.0050.0309.01
5.2.10.0050.0308.93
5.2.00.0060.0298.78
5.1.60.0070.0218.06
5.1.50.0060.0408.06
5.1.40.0080.0328.05
5.1.30.0060.0308.40
5.1.20.0060.0368.41
5.1.10.0060.0298.14
5.1.00.0050.0308.14
5.0.50.0030.0236.62
5.0.40.0050.0246.48
5.0.30.0060.0376.30
5.0.20.0070.0206.26
5.0.10.0060.0176.24
5.0.00.0030.0316.23
4.4.90.0010.0174.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0060.0124.75
4.4.50.0030.0154.77
4.4.40.0050.0274.71
4.4.30.0060.0134.76
4.4.20.0030.0164.84
4.4.10.0040.0144.85
4.4.00.0010.0274.76
4.3.110.0020.0164.67
4.3.100.0010.0164.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0030.0144.63
4.3.60.0030.0154.63
4.3.50.0040.0144.63
4.3.40.0030.0244.53
4.3.30.0010.0173.28
4.3.20.0030.0163.26
4.3.10.0020.0163.22
4.3.00.0170.0208.45

preferences:
38.3 ms | 401 KiB | 5 Q