3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arraylist = array("/abc/"=>"myfunction"); function myfunction(){ echo "Whatnow"; } foreach($arraylist as $key=>$value){ if(preg_match($key, "abc")){ $func = $value; $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.0120.00318.56
8.3.50.0150.00721.18
8.3.40.0130.00618.94
8.3.30.0070.00719.22
8.3.20.0070.00020.33
8.3.10.0080.00020.82
8.3.00.0040.00419.51
8.2.180.0170.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00320.53
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0080.00022.27
8.2.110.0090.00020.52
8.2.100.0090.00318.16
8.2.90.0050.00319.02
8.2.80.0040.00417.97
8.2.70.0030.00617.88
8.2.60.0050.00317.55
8.2.50.0040.00418.07
8.2.40.0000.00718.09
8.2.30.0030.00719.18
8.2.20.0040.00417.86
8.2.10.0040.00418.01
8.2.00.0030.00517.79
8.1.280.0090.00925.92
8.1.270.0000.00723.87
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0100.00023.80
8.1.230.0040.00819.16
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0140.00017.35
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0080.00018.73
8.1.160.0040.00422.02
8.1.150.0040.00418.79
8.1.140.0040.00417.64
8.1.130.0070.00017.80
8.1.120.0020.00517.44
8.1.110.0090.00017.61
8.1.100.0000.00717.48
8.1.90.0070.00017.64
8.1.80.0050.00217.63
8.1.70.0040.00417.57
8.1.60.0040.00417.75
8.1.50.0050.00317.54
8.1.40.0000.00817.65
8.1.30.0000.00817.79
8.1.20.0000.00817.80
8.1.10.0040.00417.64
8.1.00.0030.00517.66
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0070.00018.46
8.0.270.0000.00717.28
8.0.260.0000.00617.18
8.0.250.0070.00017.15
8.0.240.0030.00316.98
8.0.230.0030.00317.06
8.0.220.0070.00016.99
8.0.210.0030.00316.93
8.0.200.0000.00717.05
8.0.190.0040.00417.15
8.0.180.0040.00416.91
8.0.170.0050.00317.03
8.0.160.0000.00717.02
8.0.150.0000.00816.88
8.0.140.0040.00416.98
8.0.130.0040.00413.33
8.0.120.0080.00016.91
8.0.110.0020.00516.87
8.0.100.0020.00516.90
8.0.90.0000.00717.06
8.0.80.0180.00317.05
8.0.70.0000.00816.93
8.0.60.0090.00016.86
8.0.50.0050.00317.08
8.0.30.0060.01317.39
8.0.20.0060.01417.43
8.0.10.0050.00217.02
8.0.00.0110.00617.07
7.4.330.0030.00315.00
7.4.320.0060.00016.73
7.4.300.0000.00616.77
7.4.290.0080.00016.68
7.4.280.0060.00316.68
7.4.270.0030.00316.65
7.4.260.0000.00716.83
7.4.250.0000.00816.66
7.4.240.0040.00316.68
7.4.230.0000.00716.81
7.4.220.0130.00716.89
7.4.210.0110.00416.83
7.4.200.0040.00416.83
7.4.160.0120.00316.47
7.4.150.0110.00817.40
7.4.140.0060.01117.86
7.4.130.0050.01216.84
7.4.120.0080.01016.83
7.4.110.0120.00416.79
7.4.100.0070.01016.65
7.4.90.0170.00016.51
7.4.80.0060.01218.80
7.4.70.0140.00816.55
7.4.60.0100.00716.72
7.4.50.0000.00816.73
7.4.40.0150.00616.71
7.4.30.0080.00816.68
7.4.00.0040.01415.25
7.3.330.0050.00013.32
7.3.320.0030.00313.53
7.3.310.0070.00016.41
7.3.300.0000.00716.44
7.3.290.0100.00316.45
7.3.280.0080.00816.53
7.3.270.0030.01417.40
7.3.260.0120.00616.51
7.3.250.0150.00316.76
7.3.240.0130.01016.88
7.3.230.0090.00616.69
7.3.210.0100.00716.46
7.3.200.0130.00319.39
7.3.190.0120.00616.58
7.3.180.0080.00816.75
7.3.170.0030.01316.73
7.3.160.0110.01116.58
7.2.330.0040.01416.79
7.2.320.0090.00916.69
7.2.310.0090.00916.77
7.2.300.0080.00817.00
7.2.290.0120.00616.82
7.2.110.0060.00316.85
7.2.100.0070.00716.64
7.2.90.0080.00416.81
7.2.80.0090.00616.84
7.2.70.0080.00816.77
7.2.60.0030.01016.79
7.2.50.0060.00917.15
7.2.40.0070.00717.14
7.2.30.0080.00316.95
7.2.20.0030.01017.15
7.2.10.0030.01216.81
7.2.00.0060.00818.37
7.1.230.0030.00616.04
7.1.220.0000.01216.00
7.1.210.0030.01015.80
7.1.200.0000.01515.92
7.1.190.0040.00416.09
7.1.180.0070.00715.98
7.1.170.0000.01215.98
7.1.160.0060.00615.64
7.1.150.0090.00015.99
7.1.140.0040.01115.90
7.1.130.0060.00315.76
7.1.120.0070.00715.61
7.1.110.0060.00615.97
7.1.100.0060.00517.25
7.1.90.0100.00315.64
7.1.80.0120.00415.98
7.1.70.0050.00616.70
7.1.60.0100.01017.71
7.1.50.0130.00616.66
7.1.40.0080.00815.84
7.1.30.0030.00715.93
7.1.20.0090.00616.11
7.1.10.0000.01416.08
7.1.00.0020.04319.24
7.0.310.0080.00015.83
7.0.300.0060.00315.51
7.0.290.0030.01015.72
7.0.280.0100.00315.63
7.0.270.0030.01015.66
7.0.260.0030.00715.18
7.0.250.0100.00315.51
7.0.240.0070.00715.45
7.0.230.0090.00315.84
7.0.220.0040.00815.39
7.0.210.0030.00715.66
7.0.200.0030.00716.21
7.0.190.0060.00015.46
7.0.180.0000.01015.68
7.0.170.0060.00615.48
7.0.160.0060.00715.38
7.0.150.0030.01015.64
7.0.140.0110.03218.76
7.0.130.0030.01115.31
7.0.120.0120.00015.47
7.0.110.0100.00015.52
7.0.100.0070.00715.64
7.0.90.0040.00715.67
7.0.80.0060.00615.66
7.0.70.0060.00915.75
7.0.60.0020.04217.74
7.0.50.0030.04416.77
7.0.40.0100.04516.97
7.0.30.0190.03617.00
7.0.20.0190.03816.98
7.0.10.0100.02916.86
7.0.00.0060.04116.87
5.6.380.0110.00314.29
5.6.370.0130.00314.77
5.6.360.0070.00714.34
5.6.350.0040.01114.20
5.6.340.0040.00814.35
5.6.330.0000.01214.75
5.6.320.0060.00614.32
5.6.310.0000.00913.90
5.6.300.0000.01114.41
5.6.290.0030.00314.23
5.6.280.0090.03717.68
5.6.270.0030.00614.23
5.6.260.0030.01014.21
5.6.250.0040.00814.30
5.6.240.0060.00314.50
5.6.230.0000.00814.47
5.6.220.0100.00314.52
5.6.210.0050.04517.61
5.6.200.0050.03816.30
5.6.190.0100.04717.48
5.6.180.0180.03817.41
5.6.170.0210.03817.56
5.6.160.0050.03817.50
5.6.150.0010.02816.33
5.6.140.0050.02016.21
5.6.130.0030.02616.24
5.6.120.0070.04517.72
5.6.110.0070.02817.80
5.6.100.0050.03917.72
5.6.90.0100.04717.70
5.6.80.0070.02017.35
5.6.70.2300.01917.26
5.6.60.0040.01114.10
5.6.50.0090.00614.17
5.6.40.0090.00614.48
5.6.30.0070.00714.27
5.6.20.0070.00714.26
5.6.10.0000.00914.09
5.6.00.0070.00714.29
5.5.380.0070.00312.79
5.5.370.0040.00412.79
5.5.360.0040.00712.79
5.5.350.0070.04316.59
5.5.340.0050.04615.39
5.5.330.0060.02816.63
5.5.320.0250.03616.53
5.5.310.0080.03216.51
5.5.300.0070.03615.37
5.5.290.0020.02715.38
5.5.280.0100.04316.88
5.5.270.0070.04116.78
5.5.260.0080.04116.81
5.5.250.0100.03916.64
5.5.240.0090.01716.53
5.5.230.0040.00812.79
5.5.220.0090.00312.79
5.5.210.0040.00812.79
5.5.200.0040.00812.79
5.5.190.0000.00612.79
5.5.180.0060.00012.79
5.5.170.0060.00914.37
5.5.160.0050.00512.79
5.5.150.0000.00812.79
5.5.140.0030.01012.79
5.5.130.0000.00712.79
5.5.120.0060.00612.79
5.5.110.0080.00412.79
5.5.100.0100.00012.79
5.5.90.0070.00012.79
5.5.80.0000.01112.79
5.5.70.0000.00712.79
5.5.60.0030.00612.79
5.5.50.0030.00612.79
5.5.40.0000.01112.79
5.5.30.0030.00612.79
5.5.20.0000.01212.79
5.5.10.0000.01212.79
5.5.00.0040.00712.79
5.4.450.0420.01716.10
5.4.440.0440.02716.20
5.4.430.0550.02816.20
5.4.420.0350.00316.08
5.4.410.0380.00016.18
5.4.400.0350.00416.02
5.4.390.0360.00116.03
5.4.380.0220.03515.69
5.4.370.0180.03215.80
5.4.360.0170.03215.77
5.4.350.0100.03815.63
5.4.340.0220.02515.69
5.4.330.0030.00612.79
5.4.320.0030.02312.65
5.4.310.0060.02112.65
5.4.300.0070.02112.65
5.4.290.0020.02612.64
5.4.280.0060.02212.59
5.4.270.0060.02212.59
5.4.260.0070.01812.59
5.4.250.0060.02112.60
5.4.240.0050.02112.60
5.4.230.0020.02712.59
5.4.220.0050.02112.59
5.4.210.0030.02112.59
5.4.200.0020.02512.59
5.4.190.0070.02012.59
5.4.180.0040.01912.59
5.4.170.0060.02312.59
5.4.160.0050.02312.59
5.4.150.0080.01812.59
5.4.140.0060.02212.43
5.4.130.0020.02312.42
5.4.120.0040.02312.40
5.4.110.0080.01812.40
5.4.100.0050.02112.40
5.4.90.0070.01912.40
5.4.80.0080.02012.40
5.4.70.0050.02112.40
5.4.60.0040.02112.40
5.4.50.0040.02112.40
5.4.40.0070.01812.39
5.4.30.0090.01812.39
5.4.20.0080.01712.39
5.4.10.0040.02112.39
5.4.00.0140.01912.13
5.3.290.0070.02112.79
5.3.280.0050.02312.75
5.3.270.0050.02312.76
5.3.260.0050.02112.76
5.3.250.0020.02412.76
5.3.240.0060.02012.75
5.3.230.0070.02012.75
5.3.220.0040.02212.73
5.3.210.0070.02312.73
5.3.200.0070.01912.74
5.3.190.0080.02012.73
5.3.180.0070.01912.73
5.3.170.0060.02012.73
5.3.160.0050.02012.73
5.3.150.0080.01912.73
5.3.140.0080.01812.73
5.3.130.0090.02012.72
5.3.120.0080.02012.72
5.3.110.0060.02012.72
5.3.100.0030.02312.46
5.3.90.0070.01912.45
5.3.80.0070.02012.45
5.3.70.0090.01912.44
5.3.60.0060.02112.44
5.3.50.0090.01812.41
5.3.40.0050.02112.41
5.3.30.0060.02312.39
5.3.20.0070.01912.28
5.3.10.0040.02112.26
5.3.00.0070.01812.26
5.2.170.0060.01511.01
5.2.160.0040.01611.01
5.2.150.0060.01711.01
5.2.140.0050.01811.01
5.2.130.0070.01710.99
5.2.120.0040.01910.99
5.2.110.0090.01410.99
5.2.100.0060.01610.99
5.2.90.0060.01510.99
5.2.80.0080.01810.98
5.2.70.0020.02210.98
5.2.60.0060.01510.96
5.2.50.0080.01410.95
5.2.40.0060.01510.94
5.2.30.0050.01510.92
5.2.20.0060.01510.92
5.2.10.0060.01610.87
5.2.00.0070.01610.79
5.1.60.0060.01510.44
5.1.50.0020.01810.44
5.1.40.0070.01410.42
5.1.30.0040.01710.60
5.1.20.0070.01910.61
5.1.10.0050.01710.47
5.1.00.0030.01610.47
5.0.50.0020.0169.71
5.0.40.0060.0099.64
5.0.30.0060.0149.55
5.0.20.0040.0129.53
5.0.10.0060.0129.52
5.0.00.0070.0159.52
4.4.90.0070.0118.79
4.4.80.0040.0098.77
4.4.70.0040.0088.77
4.4.60.0030.0098.77
4.4.50.0040.0098.78
4.4.40.0030.0158.75
4.4.30.0050.0108.77
4.4.20.0060.0098.82
4.4.10.0060.0088.82
4.4.00.0070.0128.77
4.3.110.0030.0148.73
4.3.100.0030.0148.73
4.3.90.0030.0118.71
4.3.80.0020.0148.68
4.3.70.0010.0108.71
4.3.60.0030.0088.71
4.3.50.0030.0108.71
4.3.40.0040.0148.66
4.3.30.0060.0088.04
4.3.20.0040.0088.03
4.3.10.0030.0078.01
4.3.00.0020.00814.59

preferences:
45.58 ms | 401 KiB | 5 Q