3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fileName = 'teszt.class.php'; if (strpos($fileName, '.') !== false) { print strtolower(substr($fileName, strripos($fileName, '.') + 1)); }

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.0000.01516.38
8.3.50.0160.00222.73
8.3.40.0070.00718.66
8.3.30.0120.00319.01
8.3.20.0070.00020.16
8.3.10.0060.00323.64
8.3.00.0080.00019.25
8.2.180.0070.01116.38
8.2.170.0070.01022.96
8.2.160.0090.00620.35
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0080.00021.10
8.2.110.0030.00720.54
8.2.100.0040.00819.64
8.2.90.0040.00718.34
8.2.80.0000.00917.97
8.2.70.0000.01017.48
8.2.60.0040.00418.04
8.2.50.0060.00318.07
8.2.40.0040.00418.12
8.2.30.0000.00818.00
8.2.20.0050.00217.69
8.2.10.0070.00018.05
8.2.00.0040.00417.55
8.1.280.0110.01125.92
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.25
8.1.230.0080.00320.91
8.1.220.0050.00317.78
8.1.210.0040.00418.87
8.1.200.0060.00617.22
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0110.00018.33
8.1.160.0000.00721.85
8.1.150.0000.00718.73
8.1.140.0040.00417.38
8.1.130.0070.00017.73
8.1.120.0040.00417.41
8.1.110.0040.00417.36
8.1.100.0040.00417.45
8.1.90.0030.00417.37
8.1.80.0070.00017.38
8.1.70.0040.00417.33
8.1.60.0030.00517.55
8.1.50.0050.00317.46
8.1.40.0020.00517.47
8.1.30.0030.00517.55
8.1.20.0080.00017.57
8.1.10.0050.00317.53
8.1.00.0040.00417.30
8.0.300.0030.00520.04
8.0.290.0040.00416.75
8.0.280.0000.00818.35
8.0.270.0000.00717.17
8.0.260.0020.00517.30
8.0.250.0030.00316.94
8.0.240.0060.00316.87
8.0.230.0030.00316.93
8.0.220.0030.00316.72
8.0.210.0030.00316.72
8.0.200.0050.00216.77
8.0.190.0040.00416.91
8.0.180.0000.00716.84
8.0.170.0000.00816.77
8.0.160.0030.00516.93
8.0.150.0000.00816.82
8.0.140.0000.00816.69
8.0.130.0030.00313.35
8.0.120.0040.00416.70
8.0.110.0040.00416.85
8.0.100.0000.00716.80
8.0.90.0070.00016.83
8.0.80.0120.01116.77
8.0.70.0070.00016.63
8.0.60.0000.00716.80
8.0.50.0040.00416.87
8.0.30.0100.01016.90
8.0.20.0120.00617.40
8.0.10.0000.00716.89
8.0.00.0080.01216.52
7.4.330.0070.00015.00
7.4.320.0040.00416.51
7.4.300.0060.00316.35
7.4.290.0030.00316.57
7.4.280.0000.00716.60
7.4.270.0000.00716.40
7.4.260.0000.00716.60
7.4.250.0040.00416.58
7.4.240.0040.00416.53
7.4.230.0000.00716.69
7.4.220.0110.00616.67
7.4.210.0030.01016.53
7.4.200.0000.00716.31
7.4.160.0090.00616.41
7.4.150.0000.01817.40
7.4.140.0060.01417.86
7.4.130.0130.00616.46
7.4.120.0070.01416.51
7.4.110.0080.00916.41
7.4.100.0000.01616.33
7.4.90.0110.00616.46
7.4.80.0090.00919.39
7.4.70.0130.00716.38
7.4.60.0100.00716.34
7.4.50.0030.00516.38
7.4.40.0110.01116.43
7.4.30.0120.00616.41
7.4.00.0080.00514.68
7.3.330.0000.00612.96
7.3.320.0000.00513.11
7.3.310.0000.00816.25
7.3.300.0000.00616.23
7.3.290.0070.00716.19
7.3.280.0070.01016.15
7.3.270.0140.00317.40
7.3.260.0130.00316.44
7.3.250.0020.01416.30
7.3.240.0100.00716.51
7.3.230.0170.00016.42
7.3.210.0090.00916.17
7.3.200.0100.00619.39
7.3.190.0060.01616.17
7.3.180.0090.00916.22
7.3.170.0080.00816.54
7.3.160.0080.01416.48
7.2.330.0100.00716.36
7.2.320.0110.00616.72
7.2.310.0140.00416.69
7.2.300.0100.00716.61
7.2.290.0120.00616.66
7.2.60.0060.00816.77
7.2.00.0000.01419.20
7.1.200.0020.00515.42
7.1.100.0040.01117.84
7.1.70.0000.00717.22
7.1.60.0170.00719.46
7.1.50.0060.01616.87
7.1.00.0030.07722.50
7.0.200.0000.01316.77
7.0.140.0100.06722.19
7.0.60.0000.08021.79
7.0.50.0130.06017.88
7.0.40.0100.04720.32
7.0.30.0200.05020.17
7.0.20.0400.04719.97
7.0.10.0100.06320.30
7.0.00.0030.07320.00
5.6.280.0000.07721.07
5.6.210.0030.08020.51
5.6.200.0170.07318.12
5.6.190.0000.05320.41
5.6.180.0200.04320.45
5.6.170.0300.07720.33
5.6.160.0030.05720.70
5.6.150.0070.03718.19
5.6.140.0070.03718.16
5.6.130.0030.04018.15
5.6.120.0030.06720.99
5.6.110.0000.09021.02
5.6.100.0170.07320.99
5.6.90.0030.09020.98
5.6.80.0070.07020.44
5.5.350.3900.04020.32
5.5.340.0130.03018.02
5.5.330.0070.06720.43
5.5.320.0700.05720.18
5.5.310.0400.08720.29
5.5.300.0070.05317.91
5.5.290.0170.03017.91
5.5.280.0070.07720.87
5.5.270.0030.04720.76
5.5.260.0030.06720.96
5.5.250.0170.07020.68
5.5.240.0030.07720.19
5.4.450.4030.03719.37
5.4.440.3770.03719.36
5.4.430.3630.03319.36
5.4.420.3730.04019.49
5.4.410.3230.04319.46
5.4.400.4100.03719.13
5.4.390.3800.03319.11
5.4.380.4170.03318.97
5.4.370.3500.04019.16
5.4.360.3830.03719.11
5.4.350.4530.04719.06
5.4.340.3800.03719.17
5.4.320.4530.04019.00
5.4.310.4030.04319.04
5.4.300.3770.03718.96
5.4.290.3530.04319.15
5.4.280.3570.04019.17
5.4.270.3830.03319.05
5.4.260.3930.03719.10
5.4.250.4130.03719.15
5.4.240.4600.03319.12
5.4.230.4130.04719.04
5.4.220.3600.03319.04
5.4.210.4130.04018.91
5.4.200.4070.05019.12
5.4.190.3630.03719.07
5.4.180.3800.03719.25
5.4.170.4070.02719.15
5.4.160.3600.03319.02
5.4.150.3730.03719.02
5.4.140.4630.03316.39
5.4.130.2130.03716.41
5.4.120.0000.08016.34
5.4.110.4430.03716.36
5.4.100.4370.03716.37
5.4.90.4730.03716.45
5.4.80.3470.03716.40
5.4.70.3770.03316.30
5.4.60.3900.03716.20
5.4.50.3670.03316.43
5.4.40.3630.03316.30
5.4.30.3700.03016.54
5.4.20.1330.03316.30
5.4.10.0000.04016.48
5.4.00.2670.03315.79
5.3.290.3600.04014.58
5.3.280.3830.03714.60
5.3.270.3370.04014.48
5.3.260.3870.04014.69
5.3.250.4100.04714.53
5.3.240.3930.03714.54
5.3.230.0000.06714.55
5.3.220.0030.05014.54
5.3.210.4600.03714.49
5.3.200.4500.04314.49
5.3.190.3700.03714.49
5.3.180.3670.03314.53
5.3.170.3630.03314.48
5.3.160.3930.03714.64
5.3.150.3870.03714.34
5.3.140.3630.03014.43
5.3.130.4270.03714.47
5.3.120.3770.04314.48
5.3.110.0070.03314.48
5.3.100.2630.03714.00
5.3.90.3530.04013.91
5.3.80.2800.04313.95
5.3.70.3630.03013.80
5.3.60.3000.03713.79
5.3.50.3730.04013.89
5.3.40.3500.02713.92
5.3.30.3730.02714.00
5.3.20.4200.04713.61
5.3.10.3930.03313.47
5.3.00.3830.03013.45
5.2.170.2700.03311.17
5.2.160.3000.02711.04
5.2.150.3330.03011.08
5.2.140.3300.03310.98
5.2.130.3730.02711.13
5.2.120.3230.03711.04
5.2.110.3400.02711.09
5.2.100.3570.03011.03
5.2.90.3230.03310.96
5.2.80.2970.03311.07
5.2.70.3200.03010.99
5.2.60.3230.03011.11
5.2.50.3500.03010.90
5.2.40.2700.02711.07
5.2.30.2470.03010.84
5.2.20.2600.03310.84
5.2.10.1730.03310.94
5.2.00.2700.03310.76
5.1.60.2800.02710.01
5.1.50.2870.0209.83
5.1.40.2630.02310.06
5.1.30.2500.03010.34
5.1.20.2730.02710.50
5.1.10.2370.02310.01
5.1.00.2430.02710.07
5.0.50.1270.0208.62
5.0.40.1330.0208.37
5.0.30.1470.0308.20
5.0.20.1800.0208.14
5.0.10.1470.0208.07
5.0.00.1400.0308.15
4.4.90.1470.0135.97
4.4.80.1430.0205.97
4.4.70.1500.0175.97
4.4.60.1430.0135.97
4.4.50.1230.0135.97
4.4.40.1430.0305.97
4.4.30.1330.0175.97
4.4.20.1470.0205.97
4.4.10.1370.0235.97
4.4.00.1430.0335.97
4.3.110.1230.0175.97
4.3.100.1370.0135.97
4.3.90.1630.0175.97
4.3.80.1700.0275.97
4.3.70.1700.0105.97
4.3.60.1670.0175.97
4.3.50.1900.0175.97
4.3.40.1600.0305.97
4.3.30.0730.0205.97
4.3.20.0730.0205.97
4.3.10.0730.0205.97
4.3.00.0800.0235.97

preferences:
42.08 ms | 401 KiB | 5 Q