3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PrefType { public static function Int() { return 'int'; } public static function Float() { return 'float'; } public static function String() { return 'string'; } public static function Enum() { return 'enum'; } } echo PrefType::Int(4);

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.49
8.3.50.0090.00822.05
8.3.40.0040.01118.70
8.3.30.0090.00618.86
8.3.20.0040.00420.34
8.3.10.0080.00023.65
8.3.00.0030.00517.92
8.2.180.0130.00316.63
8.2.170.0090.00622.96
8.2.160.0120.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0030.00520.96
8.2.110.0090.00022.02
8.2.100.0080.00319.52
8.2.90.0000.00719.09
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0030.00517.80
8.2.50.0030.00618.07
8.2.40.0070.00018.22
8.2.30.0060.00318.11
8.2.20.0080.00017.63
8.2.10.0000.00718.00
8.2.00.0070.00017.55
8.1.280.0100.00725.92
8.1.270.0080.00023.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.14
8.1.230.0090.00319.20
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.13
8.1.190.0080.00017.10
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0040.00421.87
8.1.150.0040.00418.69
8.1.140.0050.00217.32
8.1.130.0070.00017.74
8.1.120.0030.00317.22
8.1.110.0070.00017.23
8.1.100.0070.00017.33
8.1.90.0040.00417.41
8.1.80.0040.00417.33
8.1.70.0040.00817.30
8.1.60.0050.00317.40
8.1.50.0040.00417.48
8.1.40.0080.00017.45
8.1.30.0040.00417.50
8.1.20.0020.00517.54
8.1.10.0040.00417.42
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0050.00217.13
8.0.260.0000.00817.19
8.0.250.0030.00317.00
8.0.240.0000.00616.96
8.0.230.0070.00016.88
8.0.220.0040.00416.84
8.0.210.0060.00016.78
8.0.200.0030.00716.88
8.0.190.0030.00616.96
8.0.180.0000.00716.88
8.0.170.0070.00016.86
8.0.160.0000.00716.86
8.0.150.0040.00416.65
8.0.140.0000.00716.70
8.0.130.0000.00713.19
8.0.120.0080.00016.63
8.0.110.0040.00416.66
8.0.100.0040.00416.79
8.0.90.0080.00016.73
8.0.80.0060.00916.75
8.0.70.0080.00016.79
8.0.60.0040.00416.65
8.0.50.0000.00716.55
8.0.30.0090.00917.01
8.0.20.0120.00717.40
8.0.10.0040.00416.78
8.0.00.0060.01116.79
7.4.330.0020.00215.02
7.4.320.0030.00316.50
7.4.300.0030.00316.36
7.4.290.0030.00316.54
7.4.280.0000.00716.38
7.4.270.0030.00316.30
7.4.260.0040.00416.55
7.4.250.0040.00416.44
7.4.240.0040.00416.38
7.4.230.0030.00316.57
7.4.220.0070.01116.40
7.4.210.0150.00016.64
7.4.200.0000.00716.62
7.4.160.0120.00916.48
7.4.150.0120.00617.40
7.4.140.0140.00817.86
7.4.130.0090.00716.63
7.4.120.0100.00616.46
7.4.110.0100.01316.51
7.4.100.0170.00516.36
7.4.90.0100.01316.48
7.4.80.0120.00919.39
7.4.70.0030.01316.61
7.4.60.0090.00716.27
7.4.50.0060.00016.37
7.4.40.0100.00616.33
7.4.30.0120.00616.31
7.4.00.0100.00715.03
7.3.330.0000.00513.30
7.3.320.0000.00713.30
7.3.310.0050.00216.22
7.3.300.0000.00716.24
7.3.290.0130.00616.20
7.3.280.0090.01016.22
7.3.270.0080.00817.40
7.3.260.0120.00616.28
7.3.250.0080.01216.25
7.3.240.0100.00616.16
7.3.230.0140.00316.39
7.3.210.0130.00316.32
7.3.200.0030.02016.38
7.3.190.0070.01016.50
7.3.180.0120.00616.43
7.3.170.0060.01116.49
7.3.160.0170.00016.54
7.3.120.0070.00714.54
7.2.330.0080.00916.55
7.2.320.0050.01116.30
7.2.310.0120.01216.57
7.2.300.0090.00816.42
7.2.290.0090.00616.40
7.2.00.0000.01219.41
7.1.100.0230.00916.28
7.1.70.0040.00417.00
7.1.60.0060.01519.70
7.1.50.0130.01316.83
7.1.00.0100.07022.48
7.0.200.0000.00916.51
7.0.140.0070.06722.16
7.0.60.0070.07319.85
7.0.50.0030.07317.84
7.0.40.0030.04320.29
7.0.30.0230.05320.13
7.0.20.0170.06320.08
7.0.10.0300.07320.24
7.0.00.0030.07320.15
5.6.280.0130.06721.09
5.6.210.0130.07320.56
5.6.200.0030.05018.22
5.6.190.0070.07720.32
5.6.180.0230.08320.56
5.6.170.0470.06320.47
5.6.160.0000.09320.54
5.6.150.0100.08018.15
5.6.140.0100.07318.16
5.6.130.0000.05718.18
5.6.120.0100.07720.95
5.6.110.0030.04020.99
5.6.100.0030.07021.13
5.6.90.0170.07021.13
5.6.80.0070.08020.43
5.6.70.0270.05720.36
5.5.350.0270.08020.39
5.5.340.0070.03317.95
5.5.330.0100.08020.27
5.5.320.0230.05320.47
5.5.310.0200.05720.23
5.5.300.0070.08018.07
5.5.290.0100.05018.07
5.5.280.0100.05720.77
5.5.270.0070.08020.73
5.5.260.0000.07720.87
5.5.250.0030.08020.78
5.5.240.0100.04020.16
5.4.450.3570.05019.52
5.4.440.3600.03719.20
5.4.430.3230.04319.51
5.4.420.3730.05019.58
5.4.410.4230.04019.27
5.4.400.3670.03719.25
5.4.390.3370.04019.31
5.4.380.3900.03719.18
5.4.370.3470.04019.32
5.4.360.2870.04018.98
5.4.350.3270.03019.22
5.4.340.3430.04019.24
5.4.320.4370.04019.22
5.4.310.3430.04019.16
5.4.300.4170.03719.08
5.4.290.4130.03319.22
5.4.280.4230.03719.19
5.4.270.4300.04019.13
5.4.260.3870.03019.23
5.4.250.4070.03719.08
5.4.240.3570.03319.05
5.4.230.3900.03718.86
5.4.220.3800.03718.94
5.4.210.3630.03719.25
5.4.200.3500.03019.25
5.4.190.3600.03718.86
5.4.180.3400.04019.19
5.4.170.3870.03018.86
5.4.160.3670.03718.95
5.4.150.3770.04018.96
5.4.140.3670.03716.32
5.4.130.3300.03316.46
5.4.120.3170.03316.49
5.4.110.3500.03316.35
5.4.100.3430.03316.65
5.4.90.3470.03016.37
5.4.80.3400.03716.29
5.4.70.3500.03016.52
5.4.60.4000.04316.52
5.4.50.3670.03716.18
5.4.40.3600.03716.48
5.4.30.4000.03316.22
5.4.20.3500.03716.53
5.4.10.2730.03716.16
5.4.00.0100.03315.73
5.3.290.4130.04714.67
5.3.280.3170.03314.51
5.3.270.3570.04014.50
5.3.260.3900.03314.52
5.3.250.3470.03714.82
5.3.240.3830.04314.71
5.3.230.3800.03714.63
5.3.220.3500.03714.61
5.3.210.3430.04014.53
5.3.200.3530.03314.48
5.3.190.3430.03714.48
5.3.180.3400.04314.61
5.3.170.3500.03314.56
5.3.160.3500.03314.53
5.3.150.3430.03714.54
5.3.140.3700.03314.57
5.3.130.3970.03714.46
5.3.120.3230.03714.55
5.3.110.2700.03714.54
5.3.100.0030.05314.01
5.3.90.0000.04714.03
5.3.80.2300.04014.09
5.3.70.3400.03714.04
5.3.60.3600.04313.91
5.3.50.3730.03713.95
5.3.40.3470.03713.92
5.3.30.3700.03714.06
5.3.20.4370.03713.91
5.3.10.3900.02713.58
5.3.00.3930.03713.62
5.2.170.2830.02712.05
5.2.160.3030.02312.05
5.2.150.2800.03712.05
5.2.140.3570.03712.05
5.2.130.3370.03312.05
5.2.120.3800.02312.05
5.2.110.3370.03012.05
5.2.100.3670.03012.05
5.2.90.3700.03012.05
5.2.80.3370.02712.05
5.2.70.3730.02712.05
5.2.60.3470.02712.05
5.2.50.0000.07012.05
5.2.40.0000.04312.05
5.2.30.0100.06012.05
5.2.20.0070.07012.05
5.2.10.2830.02712.05
5.2.00.2770.02712.05
5.1.60.2700.02312.05
5.1.50.2400.02312.05
5.1.40.3030.02012.05
5.1.30.2730.02312.05
5.1.20.2770.02712.05
5.1.10.2470.02712.05
5.1.00.2600.02712.05
5.0.50.1270.02712.05
5.0.40.1470.02312.05
5.0.30.1330.03012.05
5.0.20.1400.02312.05
5.0.10.1430.02312.05
5.0.00.1300.03010.04
4.4.90.1600.01012.05
4.4.80.1200.01712.05
4.4.70.0030.01712.05
4.4.60.0030.02012.05
4.4.50.1670.01712.05
4.4.40.1370.02312.05
4.4.30.1630.01312.05
4.4.20.1500.02012.05
4.4.10.1430.01712.05
4.4.00.1370.02712.05
4.3.110.1130.01712.05
4.3.100.1170.01312.05
4.3.90.1400.01712.05
4.3.80.1500.02310.04
4.3.70.1330.02010.04
4.3.60.1500.01710.04
4.3.50.1430.01310.04
4.3.40.1700.02710.04
4.3.30.0830.01310.04
4.3.20.0900.02310.04
4.3.10.0770.01710.04
4.3.00.1000.01310.04

preferences:
51.53 ms | 401 KiB | 5 Q