3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo array_key_exists('id', $_GET) ? 'yes' : 'no'; /*for ($files = scandir('.', 1); $files; ) { $file = array_pop($files); if (is_file($file) && !is_dir($file)) { break; } } echo '$file = '. $file;*/ ?>

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.0090.00916.50
8.3.50.0110.00722.11
8.3.40.0110.00318.76
8.3.30.0110.00419.17
8.3.20.0050.00220.33
8.3.10.0080.00023.53
8.3.00.0070.00419.19
8.2.180.0100.00716.32
8.2.170.0100.00322.96
8.2.160.0080.01120.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00422.25
8.2.110.0050.00522.25
8.2.100.0070.00417.78
8.2.90.0000.00719.28
8.2.80.0090.00018.03
8.2.70.0040.00417.75
8.2.60.0090.00017.89
8.2.50.0030.00518.07
8.2.40.0000.00718.22
8.2.30.0050.00317.98
8.2.20.0030.00617.60
8.2.10.0000.00717.55
8.2.00.0000.00817.66
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00918.86
8.1.230.0110.00019.01
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0070.00317.35
8.1.190.0040.00417.53
8.1.180.0040.00418.10
8.1.170.0030.00518.38
8.1.160.0040.00422.01
8.1.150.0040.00418.64
8.1.140.0040.00417.44
8.1.130.0070.00017.74
8.1.120.0070.00017.47
8.1.110.0000.00717.46
8.1.100.0000.00817.42
8.1.90.0030.00517.50
8.1.80.0000.00717.28
8.1.70.0000.00717.39
8.1.60.0030.00617.34
8.1.50.0040.00417.38
8.1.40.0080.00017.50
8.1.30.0030.00517.57
8.1.20.0040.00417.48
8.1.10.0000.00717.54
8.1.00.0090.00317.38
8.0.300.0060.00318.77
8.0.290.0050.00317.04
8.0.280.0000.00718.44
8.0.270.0070.00017.19
8.0.260.0030.00316.63
8.0.250.0030.00416.85
8.0.240.0030.00316.93
8.0.230.0030.00316.82
8.0.220.0000.00716.85
8.0.210.0060.00316.73
8.0.200.0040.00416.75
8.0.190.0040.00416.84
8.0.180.0030.00616.75
8.0.170.0000.00816.86
8.0.160.0000.00716.88
8.0.150.0040.00416.69
8.0.140.0070.00016.69
8.0.130.0000.00613.29
8.0.120.0000.00816.76
8.0.110.0040.00416.75
8.0.100.0040.00416.68
8.0.90.0040.00416.69
8.0.80.0100.00616.69
8.0.70.0000.00716.65
8.0.60.0080.00016.77
8.0.50.0050.00216.70
8.0.30.0100.01017.01
8.0.20.0100.00817.40
8.0.10.0000.00716.91
8.0.00.0100.01016.62
7.4.330.0000.00515.00
7.4.320.0060.00016.46
7.4.300.0030.00316.36
7.4.290.0000.00816.45
7.4.280.0030.00516.40
7.4.270.0000.00716.29
7.4.260.0000.00716.41
7.4.250.0000.00716.29
7.4.240.0000.00716.45
7.4.230.0050.00316.46
7.4.220.0150.00416.45
7.4.210.0070.00816.56
7.4.200.0070.00016.18
7.4.190.0000.00716.33
7.4.160.0130.00416.23
7.4.150.0160.01017.40
7.4.140.0110.00617.86
7.4.130.0120.00416.50
7.4.120.0090.00816.44
7.4.110.0080.00816.54
7.4.100.0150.00316.67
7.4.90.0060.01216.46
7.4.80.0030.01519.39
7.4.70.0080.00816.35
7.4.60.0090.00916.36
7.4.50.0000.00516.55
7.4.40.0060.01022.77
7.4.30.0100.00516.58
7.4.00.0040.01214.98
7.3.330.0050.00012.96
7.3.320.0000.00612.84
7.3.310.0030.00316.11
7.3.300.0070.00016.16
7.3.290.0090.00616.15
7.3.280.0110.00716.13
7.3.270.0110.00717.40
7.3.260.0140.00316.17
7.3.250.0100.00716.24
7.3.240.0040.01216.34
7.3.230.0170.00616.39
7.3.210.0060.00916.25
7.3.200.0090.01319.39
7.3.190.0160.00416.46
7.3.180.0160.00016.39
7.3.170.0080.00816.44
7.3.160.0100.00716.20
7.3.120.0050.00714.77
7.3.110.0030.01514.82
7.3.100.0070.00814.55
7.3.90.0080.00614.90
7.3.80.0080.00514.68
7.3.70.0110.00014.63
7.3.60.0080.00514.72
7.3.50.0060.00614.83
7.3.40.0050.00714.64
7.3.30.0100.00214.60
7.3.20.0090.00516.55
7.3.10.0040.00816.60
7.3.00.0060.00816.38
7.2.330.0090.00916.60
7.2.320.0060.01016.47
7.2.310.0080.00816.53
7.2.300.0120.00816.52
7.2.290.0100.00716.53
7.2.250.0100.00914.94
7.2.240.0030.01614.67
7.2.230.0060.00914.70
7.2.220.0070.00614.91
7.2.210.0110.00414.96
7.2.200.0080.00814.85
7.2.190.0090.00514.82
7.2.180.0050.00514.97
7.2.170.0080.00515.06
7.2.00.0040.00819.21
7.1.330.0070.00515.64
7.1.320.0080.00515.79
7.1.310.0030.01015.70
7.1.300.0040.00715.47
7.1.290.0010.01115.51
7.1.280.0020.01115.69
7.1.270.0080.00715.66
7.1.260.0060.01115.77
7.1.100.0000.00918.14
7.1.70.0040.01116.84
7.1.60.0100.01319.29
7.1.50.0030.01716.86
7.1.00.0030.07322.30
7.0.200.0040.00416.82
7.0.140.0070.07322.08
7.0.60.0130.07720.02
7.0.50.0100.03717.79
7.0.40.0100.08020.06
7.0.30.0230.05320.09
7.0.20.0300.08020.34
7.0.10.0400.04020.00
7.0.00.0070.04320.20
5.6.280.0030.07721.06
5.6.210.0130.07320.68
5.6.200.0070.05018.11
5.6.190.0070.08320.48
5.6.180.0030.06020.63
5.6.170.0200.07320.50
5.6.160.0030.04720.48
5.6.150.0130.06018.13
5.6.140.0000.04018.18
5.6.130.0130.08318.11
5.6.120.0130.03720.97
5.6.110.0130.08021.04
5.6.100.0070.08021.00
5.6.90.0070.07021.17
5.6.80.0030.07020.37
5.5.350.0130.05020.46
5.5.340.0070.03318.02
5.5.330.0000.05720.40
5.5.320.0070.08320.29
5.5.310.0170.03720.26
5.5.300.0100.07317.98
5.5.290.0100.07717.98
5.5.280.0130.08020.87
5.5.270.0030.07320.89
5.5.260.0130.07720.86
5.5.250.0070.05320.54
5.5.240.0030.04020.35
5.4.450.0230.05319.25
5.4.440.0230.08019.42
5.4.430.0230.07319.57
5.4.420.0300.09019.41
5.4.410.0230.07019.41
5.4.400.0200.06019.09
5.4.390.0270.04719.25
5.4.380.0230.07318.80
5.4.370.0200.05719.06
5.4.360.0230.05719.27
5.4.350.0200.06718.93
5.4.340.0130.04319.09
5.4.320.0270.07319.06
5.4.310.0270.07319.16
5.4.300.0270.05318.78
5.4.290.0270.07319.09
5.4.280.0200.04318.78
5.4.270.0200.05019.08
5.4.260.0200.04019.07
5.4.250.0230.07019.08
5.4.240.0230.07319.15
5.4.230.0170.04319.24
5.4.220.0230.04319.08
5.4.210.0270.04719.15
5.4.200.0230.07319.24
5.4.190.0270.06719.05
5.4.180.0270.07319.07
5.4.170.0270.03719.08
5.4.160.0270.03719.23
5.4.150.0270.07319.04
5.4.140.0200.06716.34
5.4.130.0130.04016.25
5.4.120.0130.06716.38
5.4.110.0270.06716.39
5.4.100.0270.06316.39
5.4.90.0200.06316.39
5.4.80.0200.07016.04
5.4.70.0270.03316.46
5.4.60.0270.06316.19
5.4.50.0200.03716.16
5.4.40.0430.05316.38
5.4.30.0200.04716.18
5.4.20.0230.05316.31
5.4.10.0430.04316.36
5.4.00.0400.04715.64
5.3.290.0230.07714.52
5.3.280.0170.04714.43
5.3.270.0200.04314.44
5.3.260.0300.07014.55
5.3.250.0230.05714.45
5.3.240.0200.04014.54
5.3.230.0170.04014.62
5.3.220.0300.04314.40
5.3.210.0230.04314.46
5.3.200.0170.07014.49
5.3.190.0130.05714.40
5.3.180.0170.05714.41
5.3.170.0170.07014.54
5.3.160.0270.05314.40
5.3.150.0170.04014.41
5.3.140.0230.07314.48
5.3.130.0230.07014.42
5.3.120.0230.07314.41
5.3.110.0230.04714.63
5.3.100.0170.07713.87
5.3.90.0270.05313.97
5.3.80.0200.07013.97
5.3.70.0300.03713.85
5.3.60.0230.06714.09
5.3.50.0300.07013.79
5.3.40.0170.06013.75
5.3.30.0200.06013.87
5.3.20.0200.06713.78
5.3.10.0300.06713.61
5.3.00.0270.06313.46
5.2.170.0200.05012.34
5.2.160.0170.04312.34
5.2.150.0170.03712.34
5.2.140.0170.04712.34
5.2.130.0200.04312.34
5.2.120.0130.04012.34
5.2.110.0130.03012.34
5.2.100.0170.05312.34
5.2.90.0200.06012.34
5.2.80.0170.05712.34
5.2.70.0100.05312.34
5.2.60.0200.04712.34
5.2.50.0170.05712.34
5.2.40.0270.05012.34
5.2.30.0100.03312.34
5.2.20.0130.03712.34
5.2.10.0270.05012.34
5.2.00.0130.05712.34
5.1.60.0200.04712.34
5.1.50.0230.04712.34
5.1.40.0130.03312.34
5.1.30.0130.04712.34
5.1.20.0230.04312.34
5.1.10.0170.04712.34
5.1.00.0170.05012.34
5.0.50.0070.03712.34
5.0.40.0100.01712.34
5.0.30.0070.03012.34
5.0.20.0070.01712.34
5.0.10.0030.02012.34
5.0.00.0000.03312.34
4.4.90.0100.02712.34
4.4.80.0100.03312.34
4.4.70.0070.03712.34
4.4.60.0130.03012.34
4.4.50.0100.02712.34
4.4.40.0100.04712.34
4.4.30.0070.03712.34
4.4.20.0130.02712.34
4.4.10.0200.02712.34
4.4.00.0130.02012.34
4.3.110.0100.01312.34
4.3.100.0030.01712.34
4.3.90.0070.01312.34
4.3.80.0030.02712.34
4.3.70.0070.01712.34
4.3.60.0070.01312.34
4.3.50.0030.01712.34
4.3.40.0000.02712.34
4.3.30.0030.01312.34
4.3.20.0030.01312.34
4.3.10.0000.02012.34
4.3.00.0030.01712.34

preferences:
39.1 ms | 401 KiB | 5 Q