3v4l.org

run code in 300+ PHP versions simultaneously
<?php $js = "function log_me() { console.log('sub2'); } log_me(); function popa() { do_stuff(); } function popa() { do_stuff(); }function popa() { do_stuff(); }function popa() { do_stuff(); }"; $js_pieces = explode('}',$js); foreach($js_pieces as &$js_piece) { if(strpos($js_piece,'function')) { if (preg_match_all('/.*function.*[a-zA-Z_]*\(\)/',$js_piece,$temp_js_arr)) { echo $js_piece; } } }

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.00618.68
8.3.50.0120.00522.05
8.3.40.0120.00918.70
8.3.30.0000.01718.89
8.3.20.0080.00020.38
8.3.10.0000.00823.71
8.3.00.0060.00319.51
8.2.180.0090.00618.31
8.2.170.0110.00422.96
8.2.160.0100.01020.39
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0030.00522.08
8.2.110.0060.00321.12
8.2.100.0080.00417.84
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0030.00618.04
8.2.50.0080.00018.10
8.2.40.0070.00020.54
8.2.30.0000.00719.75
8.2.20.0040.00417.71
8.2.10.0050.00218.02
8.2.00.0050.00517.84
8.1.280.0070.01525.92
8.1.270.0030.00523.96
8.1.260.0040.00426.35
8.1.250.0070.00728.09
8.1.240.0060.00322.66
8.1.230.0060.00620.15
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.60
8.1.190.0000.00817.47
8.1.180.0060.00318.10
8.1.170.0080.00018.66
8.1.160.0040.00422.08
8.1.150.0050.00218.80
8.1.140.0050.00317.52
8.1.130.0030.00317.84
8.1.120.0020.00517.51
8.1.110.0000.00817.53
8.1.100.0000.00717.49
8.1.90.0040.00417.60
8.1.80.0060.00317.51
8.1.70.0000.00717.54
8.1.60.0090.00017.73
8.1.50.0000.00917.69
8.1.40.0060.00317.69
8.1.30.0030.00517.63
8.1.20.0000.00817.82
8.1.10.0040.00417.64
8.1.00.0030.00517.61
8.0.300.0070.00018.77
8.0.290.0050.00516.75
8.0.280.0000.00718.43
8.0.270.0030.00317.21
8.0.260.0070.00017.27
8.0.250.0030.00317.16
8.0.240.0060.00017.13
8.0.230.0040.00417.08
8.0.220.0030.00517.02
8.0.210.0000.00717.06
8.0.200.0050.00317.09
8.0.190.0040.00416.99
8.0.180.0000.00716.99
8.0.170.0000.00917.09
8.0.160.0000.00717.05
8.0.150.0020.00517.00
8.0.140.0040.00416.88
8.0.130.0050.00013.46
8.0.120.0040.00417.00
8.0.110.0000.00716.95
8.0.100.0050.00316.93
8.0.90.0040.00416.90
8.0.80.0090.00717.02
8.0.70.0030.00616.94
8.0.60.0040.00416.98
8.0.50.0040.00416.94
8.0.30.0160.00617.36
8.0.20.0080.01017.40
8.0.10.0050.00316.97
8.0.00.0120.00516.99
7.4.330.0050.00015.02
7.4.320.0030.00316.71
7.4.300.0000.00716.77
7.4.290.0070.00016.63
7.4.280.0030.00616.83
7.4.270.0000.00716.61
7.4.260.0050.00316.79
7.4.250.0000.00816.60
7.4.240.0020.00516.70
7.4.230.0070.00016.84
7.4.220.0090.00916.90
7.4.210.0060.00816.72
7.4.200.0030.00316.71
7.4.190.0070.00016.88
7.4.160.0030.01316.71
7.4.150.0060.01217.40
7.4.140.0040.01417.86
7.4.130.0040.01216.82
7.4.120.0070.01416.73
7.4.110.0140.00316.51
7.4.100.0120.00616.62
7.4.90.0070.01016.65
7.4.80.0070.01019.39
7.4.70.0100.00616.62
7.4.60.0060.01016.88
7.4.50.0050.00416.63
7.4.40.0110.00822.77
7.4.30.0130.00316.70
7.4.00.0000.01415.01
7.3.330.0050.00013.28
7.3.320.0000.00513.25
7.3.310.0070.00016.48
7.3.300.0040.00416.25
7.3.290.0030.01016.43
7.3.280.0090.00616.42
7.3.270.0100.00717.40
7.3.260.0110.00716.70
7.3.250.0120.00716.41
7.3.240.0110.00616.51
7.3.230.0090.00916.48
7.3.210.0100.00716.45
7.3.200.0090.01219.39
7.3.190.0250.02116.63
7.3.180.0060.00916.94
7.3.170.0130.00316.31
7.3.160.0080.00816.48
7.3.120.0030.00614.86
7.2.330.0070.01116.89
7.2.320.0070.01016.78
7.2.310.0120.00616.87
7.2.300.0090.00616.75
7.2.290.0030.01416.66
7.2.00.0070.01019.76
7.1.100.0120.00018.54
7.1.70.0020.00517.58
7.1.60.0070.01719.46
7.1.50.0070.01417.18
7.1.00.0000.07722.29
7.0.200.0040.00416.91
7.0.140.0100.06722.07
7.0.60.0100.06020.04
7.0.50.0030.04017.68
7.0.40.0100.08320.22
7.0.30.0470.05720.05
7.0.20.0230.04320.34
7.0.10.0070.04320.32
7.0.00.0100.08020.03
5.6.280.0070.07020.78
5.6.210.0100.04020.45
5.6.200.0030.08018.15
5.6.190.0070.04020.43
5.6.180.0170.06020.56
5.6.170.0300.05020.50
5.6.160.0030.06320.60
5.6.150.0030.05718.13
5.6.140.0100.07318.16
5.6.130.0100.04718.11
5.6.120.0030.09021.07
5.6.110.0070.04021.02
5.6.100.0070.09320.98
5.6.90.0030.08721.04
5.6.80.0100.07320.28
5.6.70.0070.07720.52
5.5.350.0230.08020.38
5.5.340.0030.03717.98
5.5.330.0070.04320.57
5.5.320.0270.05020.32
5.5.310.0400.02720.41
5.5.300.0070.03717.89
5.5.290.0030.08017.98
5.5.280.0030.05720.73
5.5.270.0070.04320.95
5.5.260.0000.08320.97
5.5.250.0070.08020.68
5.5.240.0170.04720.18
5.4.450.0700.05019.27
5.4.440.0870.04719.46
5.4.430.0330.06019.31
5.4.420.0630.06019.54
5.4.410.0670.05719.14
5.4.400.0700.04019.16
5.4.390.0600.06318.78
5.4.380.0270.06018.74
5.4.370.0270.05318.56
5.4.360.0370.04318.57
5.4.350.0370.05318.72
5.4.340.0300.05018.66
5.4.320.0080.03512.46
5.4.310.0100.04012.45
5.4.300.0100.03912.45
5.4.290.0090.05512.45
5.4.280.0070.05312.34
5.4.270.0060.05212.34
5.4.260.0110.05012.34
5.4.250.0070.05412.34
5.4.240.0070.05312.34
5.4.230.0040.05712.33
5.4.220.0090.05012.34
5.4.210.0060.05212.34
5.4.200.0110.05012.33
5.4.190.0040.05512.33
5.4.180.0030.05712.33
5.4.170.0080.05212.34
5.4.160.0090.05012.34
5.4.150.0080.05112.33
5.4.140.0100.05312.02
5.4.130.0080.04812.00
5.4.120.0070.05311.96
5.4.110.0080.05211.96
5.4.100.0100.04711.96
5.4.90.0080.05411.96
5.4.80.0130.05011.96
5.4.70.0210.03911.95
5.4.60.0180.04211.96
5.4.50.0110.04611.96
5.4.40.0050.04211.94
5.4.30.0070.03811.95
5.4.20.0110.04511.94
5.4.10.0140.03811.95
5.4.00.0090.03711.44
5.3.290.0080.03712.80
5.3.280.0110.04612.71
5.3.270.0110.05412.73
5.3.260.0110.04612.72
5.3.250.0090.03712.72
5.3.240.0070.04112.72
5.3.230.0060.04312.71
5.3.220.0090.03812.68
5.3.210.0050.04412.68
5.3.200.0090.03812.68
5.3.190.0140.04112.68
5.3.180.0060.05112.68
5.3.170.0080.05112.67
5.3.160.0130.04612.67
5.3.150.0100.04912.67
5.3.140.0050.05012.66
5.3.130.0090.05512.66
5.3.120.0120.06712.66
5.3.110.0050.05212.66
5.3.100.0100.04712.12
5.3.90.0100.04712.08
5.3.80.0100.04312.07
5.3.70.0080.04912.07
5.3.60.0060.04612.06
5.3.50.0080.04712.00
5.3.40.0070.04812.00
5.3.30.0060.05911.97
5.3.20.0070.05211.73
5.3.10.0100.05111.70
5.3.00.0080.05511.69
5.2.170.0060.0459.19
5.2.160.0060.0439.19
5.2.150.0040.0489.19
5.2.140.0070.0449.18
5.2.130.0080.0439.14
5.2.120.0060.0459.15
5.2.110.0090.0409.16
5.2.100.0090.0409.15
5.2.90.0040.0469.15
5.2.80.0110.0439.14
5.2.70.0060.0469.15
5.2.60.0070.0479.10
5.2.50.0090.0629.07
5.2.40.0060.0459.05
5.2.30.0050.0439.03
5.2.20.0050.0409.02
5.2.10.0040.0418.92
5.2.00.0040.0448.78
5.1.60.0050.0378.06
5.1.50.0080.0328.06
5.1.40.0070.0348.04
5.1.30.0080.0368.39
5.1.20.0070.0388.41
5.1.10.0050.0388.14
5.1.00.0060.0388.14
5.0.50.0040.0316.61
5.0.40.0050.0296.48
5.0.30.0030.0446.29
5.0.20.0040.0286.25
5.0.10.0050.0296.24
5.0.00.0040.0426.23
4.4.90.0030.0254.78
4.4.80.0030.0244.75
4.4.70.0020.0254.75
4.4.60.0050.0204.75
4.4.50.0050.0214.77
4.4.40.0080.0364.71
4.4.30.0050.0214.76
4.4.20.0020.0244.84
4.4.10.0000.0274.85
4.4.00.0020.0354.76
4.3.110.0070.0204.67
4.3.100.0030.0244.66
4.3.90.0040.0234.64
4.3.80.0040.0344.58
4.3.70.0010.0254.63
4.3.60.0060.0204.63
4.3.50.0060.0214.63
4.3.40.0020.0374.54
4.3.30.0030.0233.29
4.3.20.0040.0223.27
4.3.10.0030.0233.22
4.3.00.0130.01310.54

preferences:
47.46 ms | 400 KiB | 5 Q