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.0070.00716.63
8.3.50.0100.00822.89
8.3.40.0120.00318.52
8.3.30.0110.00418.92
8.3.20.0040.00420.16
8.3.10.0040.00423.49
8.3.00.0080.00019.38
8.2.180.0070.01116.38
8.2.170.0120.00322.96
8.2.160.0070.01120.43
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.92
8.2.110.0030.00620.47
8.2.100.0040.00718.22
8.2.90.0000.00719.13
8.2.80.0000.00817.97
8.2.70.0070.00417.63
8.2.60.0000.00917.93
8.2.50.0000.00918.07
8.2.40.0090.00019.77
8.2.30.0000.00718.00
8.2.20.0000.00717.68
8.2.10.0050.00218.02
8.2.00.0050.00317.61
8.1.280.0180.00325.92
8.1.270.0090.00023.85
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0030.00622.24
8.1.230.0080.00319.14
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0070.00318.10
8.1.170.0000.00818.35
8.1.160.0000.00721.99
8.1.150.0070.00018.81
8.1.140.0030.00617.35
8.1.130.0000.00817.82
8.1.120.0000.00817.46
8.1.110.0050.00217.40
8.1.100.0000.00717.39
8.1.90.0000.00717.28
8.1.80.0000.00717.36
8.1.70.0000.00717.35
8.1.60.0090.00017.41
8.1.50.0040.00417.45
8.1.40.0040.00417.45
8.1.30.0040.00417.48
8.1.20.0020.00517.59
8.1.10.0000.00817.41
8.1.00.0030.00517.38
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0060.00318.37
8.0.270.0000.00717.25
8.0.260.0000.00817.17
8.0.250.0030.00316.91
8.0.240.0040.00416.96
8.0.230.0030.00316.89
8.0.220.0030.00316.79
8.0.210.0040.00416.85
8.0.200.0000.00816.90
8.0.190.0060.00316.86
8.0.180.0030.00316.82
8.0.170.0000.00816.88
8.0.160.0000.00716.80
8.0.150.0000.00716.83
8.0.140.0040.00416.61
8.0.130.0030.00613.28
8.0.120.0060.00316.71
8.0.110.0000.00816.77
8.0.100.0050.00316.73
8.0.90.0000.00716.76
8.0.80.0130.01016.73
8.0.70.0070.00016.66
8.0.60.0000.00716.89
8.0.50.0000.00816.89
8.0.30.0130.00616.98
8.0.20.0140.00817.40
8.0.10.0000.00716.99
8.0.00.0080.01016.80
7.4.330.0060.00015.16
7.4.320.0060.00016.52
7.4.300.0030.00616.39
7.4.290.0040.00416.66
7.4.280.0000.00816.63
7.4.270.0070.00016.57
7.4.260.0000.00716.62
7.4.250.0000.00716.61
7.4.240.0020.00516.44
7.4.230.0000.00716.52
7.4.220.0000.01716.36
7.4.210.0070.01416.59
7.4.200.0030.00316.39
7.4.160.0000.01616.49
7.4.150.0110.01217.40
7.4.140.0130.00917.86
7.4.130.0120.00516.44
7.4.120.0020.01616.51
7.4.110.0070.01016.45
7.4.100.0100.00616.47
7.4.90.0090.00916.40
7.4.80.0090.00919.39
7.4.70.0040.01316.52
7.4.60.0110.00716.36
7.4.50.0040.00416.43
7.4.40.0090.00916.26
7.4.30.0120.00316.50
7.4.00.0100.00314.84
7.3.330.0000.00613.09
7.3.320.0030.00312.99
7.3.310.0030.00316.28
7.3.300.0030.00316.15
7.3.290.0030.01216.19
7.3.280.0070.01116.26
7.3.270.0060.01217.40
7.3.260.0110.01016.36
7.3.250.0140.00516.38
7.3.240.0040.01116.39
7.3.230.0170.00016.43
7.3.210.0100.01316.16
7.3.200.0100.00719.39
7.3.190.0030.01416.13
7.3.180.0130.00316.44
7.3.170.0110.00416.30
7.3.160.0150.00616.40
7.2.330.0110.00616.29
7.2.320.0100.00716.56
7.2.310.0150.00416.61
7.2.300.0140.00316.73
7.2.290.0040.01216.65
7.2.00.0070.01019.39
7.1.100.0030.00718.07
7.1.70.0030.00617.09
7.1.60.0130.00719.46
7.1.50.0160.00716.79
7.1.00.0000.08022.46
7.0.200.0030.00316.55
7.0.140.0030.07021.95
7.0.60.0300.07321.59
7.0.50.0070.03717.78
7.0.40.0130.07320.24
7.0.30.0200.08720.30
7.0.20.0400.07320.16
7.0.10.0070.04020.34
7.0.00.0070.05720.31
5.6.280.0070.07020.86
5.6.210.0100.06020.72
5.6.200.0100.04318.15
5.6.190.0130.07320.45
5.6.180.0070.08720.57
5.6.170.0200.06020.46
5.6.160.0030.08320.50
5.6.150.0000.04718.16
5.6.140.0170.07718.11
5.6.130.0030.09018.10
5.6.120.0070.05320.98
5.6.110.0130.08021.13
5.6.100.0130.07720.97
5.6.90.0100.05720.95
5.6.80.0170.05320.53
5.5.350.0270.06720.44
5.5.340.0030.08718.00
5.5.330.0070.08720.47
5.5.320.0630.06320.31
5.5.310.0300.05320.41
5.5.300.0100.07017.94
5.5.290.0030.07317.96
5.5.280.0070.06320.74
5.5.270.0030.06020.95
5.5.260.0100.05320.79
5.5.250.0030.08020.68
5.5.240.0330.06720.35
5.4.450.2400.03319.57
5.4.440.0100.03319.48
5.4.430.1570.06319.45
5.4.420.3900.03319.32
5.4.410.3570.03719.08
5.4.400.3970.04019.00
5.4.390.3800.03719.15
5.4.380.3930.04018.87
5.4.370.4330.04018.99
5.4.360.4070.03319.04
5.4.350.3500.04019.16
5.4.340.4100.05319.12
5.4.320.3600.04019.16
5.4.310.3670.03718.89
5.4.300.3630.04019.12
5.4.290.3970.03019.05
5.4.280.4200.03719.04
5.4.270.4330.04318.85
5.4.260.4070.04719.16
5.4.250.3830.03319.03
5.4.240.3970.04019.02
5.4.230.3570.03719.13
5.4.220.3970.03719.12
5.4.210.3930.04019.24
5.4.200.4100.06019.15
5.4.190.2930.04718.88
5.4.180.3700.03719.04
5.4.170.3770.03319.07
5.4.160.4100.04319.22
5.4.150.4070.04019.10
5.4.140.4200.03716.43
5.4.130.3800.04716.36
5.4.120.4170.03716.22
5.4.110.3630.03316.35
5.4.100.3700.03716.45
5.4.90.3970.04016.16
5.4.80.3800.04016.13
5.4.70.3870.03716.31
5.4.60.4000.03316.46
5.4.50.4100.04016.32
5.4.40.3630.02716.32
5.4.30.3800.03316.30
5.4.20.4000.03316.32
5.4.10.3770.04016.36
5.4.00.3500.03715.79
5.3.290.3800.04014.75
5.3.280.3670.04014.51
5.3.270.4030.02714.53
5.3.260.4100.04714.39
5.3.250.4300.04714.52
5.3.240.3830.03714.50
5.3.230.4370.03714.51
5.3.220.5070.04014.53
5.3.210.3430.04014.49
5.3.200.3970.03314.49
5.3.190.4000.04014.50
5.3.180.3570.04014.52
5.3.170.3530.03314.48
5.3.160.3600.03314.48
5.3.150.3970.02714.66
5.3.140.4500.03714.47
5.3.130.3770.03314.54
5.3.120.4200.04314.50
5.3.110.5170.03714.48
5.3.100.3300.03314.01
5.3.90.3100.03713.81
5.3.80.2270.04013.94
5.3.70.2400.04013.85
5.3.60.2200.04013.93
5.3.50.2630.03013.73
5.3.40.3030.04313.90
5.3.30.3370.04313.87
5.3.20.2600.03713.52
5.3.10.3330.04013.47
5.3.00.2230.04013.63
5.2.170.3500.03011.08
5.2.160.2870.03011.23
5.2.150.2230.02711.03
5.2.140.1570.03011.07
5.2.130.2270.02311.11
5.2.120.2100.02711.26
5.2.110.1330.03011.25
5.2.100.2130.02711.04
5.2.90.2170.02711.25
5.2.80.2500.02710.95
5.2.70.1730.02711.10
5.2.60.3530.03310.86
5.2.50.3670.03710.98
5.2.40.2470.02710.93
5.2.30.2970.02310.86
5.2.20.2700.03010.88
5.2.10.3270.03310.86
5.2.00.2700.02710.71
5.1.60.2430.0309.91
5.1.50.2930.0239.96
5.1.40.3400.02710.12
5.1.30.2700.02710.32
5.1.20.2930.03010.50
5.1.10.2670.02310.21
5.1.00.2470.02710.11
5.0.50.1470.0208.61
5.0.40.1630.0208.55
5.0.30.1500.0338.27
5.0.20.1830.0238.26
5.0.10.1570.0178.16
5.0.00.1030.0278.05
4.4.90.0500.0135.86
4.4.80.1470.0205.88
4.4.70.1230.0205.86
4.4.60.1470.0205.86
4.4.50.1470.0135.86
4.4.40.2000.0205.86
4.4.30.1370.0175.86
4.4.20.1500.0205.89
4.4.10.1770.0135.87
4.4.00.1470.0275.86
4.3.110.1770.0175.86
4.3.100.1470.0175.86
4.3.90.1870.0135.86
4.3.80.1500.0275.86
4.3.70.1930.0135.86
4.3.60.1670.0175.86
4.3.50.1500.0175.86
4.3.40.0970.0235.86
4.3.30.0330.0205.86
4.3.20.1000.0275.86
4.3.10.0970.0175.86
4.3.00.0870.0275.86

preferences:
64.87 ms | 401 KiB | 5 Q