3v4l.org

run code in 300+ PHP versions simultaneously
<?php class luokka { public function intToString(int $i) : string { return $i+""; } } $jep = new luokka(); echo $jep->intToString(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.01716.88
8.3.50.0080.01122.11
8.3.40.0110.00418.61
8.3.30.0150.00018.84
8.3.20.0040.01120.20
8.3.10.0040.00423.65
8.3.00.0070.00019.97
8.2.180.0030.01218.29
8.2.170.0110.00422.96
8.2.160.0030.01020.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00419.33
8.2.120.0050.00326.35
8.2.110.0000.01020.52
8.2.100.0040.00817.78
8.2.90.0000.00819.01
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0100.00017.80
8.2.50.0060.00318.07
8.2.40.0040.00421.25
8.2.30.0040.00420.63
8.2.20.0070.00017.72
8.2.10.0040.00418.00
8.2.00.0030.00318.02
8.1.280.0070.01125.92
8.1.270.0060.00318.89
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00023.98
8.1.230.0000.01117.64
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0030.00518.41
8.1.160.0050.00220.70
8.1.150.0000.00718.87
8.1.140.0050.00319.50
8.1.130.0000.00817.51
8.1.120.0000.00717.34
8.1.110.0080.00017.30
8.1.100.0080.00017.29
8.1.90.0040.00417.41
8.1.80.0040.00417.46
8.1.70.0030.00317.29
8.1.60.0040.00417.60
8.1.50.0060.00317.59
8.1.40.0040.00417.45
8.1.30.0040.00417.66
8.1.20.0030.00617.67
8.1.10.0050.00317.54
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0000.00818.38
8.0.270.0030.00317.24
8.0.260.0000.00617.18
8.0.250.0030.00316.79
8.0.240.0000.00716.99
8.0.230.0060.00316.84
8.0.220.0000.00816.90
8.0.210.0060.00316.76
8.0.200.0060.00016.99
8.0.190.0040.00416.86
8.0.180.0000.00716.91
8.0.170.0130.00016.79
8.0.160.0000.00716.85
8.0.150.0030.00516.87
8.0.140.0050.00516.80
8.0.130.0050.00013.31
8.0.120.0050.00216.83
8.0.110.0000.00816.80
8.0.100.0000.00716.86
8.0.90.0040.00416.88
8.0.80.0090.00616.93
8.0.70.0030.00316.74
8.0.60.0070.00016.86
8.0.50.0070.00016.84
8.0.30.0120.01017.04
8.0.20.0070.01317.40
8.0.10.0040.00417.07
8.0.00.0120.00616.80
7.4.330.0050.00016.85
7.4.320.0030.00316.38
7.4.300.0040.00416.42
7.4.290.0000.00716.53
7.4.280.0050.00516.64
7.4.270.0000.00816.60
7.4.260.0000.00716.60
7.4.250.0000.00816.39
7.4.240.0060.00116.53
7.4.230.0000.00716.41
7.4.220.0080.00816.70
7.4.210.0070.00716.66
7.4.200.0070.00016.64
7.4.160.0040.01116.44
7.4.150.0060.01217.40
7.4.140.0100.00917.86
7.4.130.0150.00516.47
7.4.120.0090.01316.53
7.4.110.0120.03416.45
7.4.100.0100.01316.64
7.4.90.0100.01316.57
7.4.80.0120.01219.39
7.4.70.0060.01016.50
7.4.60.0160.00016.46
7.4.50.0130.00316.37
7.4.40.0120.00916.33
7.4.30.0120.00616.49
7.4.10.0060.00915.02
7.4.00.0090.00914.80
7.3.330.0030.00313.31
7.3.320.0000.00513.29
7.3.310.0070.00016.20
7.3.300.0030.00316.32
7.3.290.0080.00916.24
7.3.280.0070.01116.30
7.3.270.0100.00717.40
7.3.260.0070.01016.36
7.3.250.0080.01516.40
7.3.240.0130.00816.38
7.3.230.0090.00916.41
7.3.210.0100.00716.64
7.3.200.0100.00616.55
7.3.190.0060.00916.59
7.3.180.0090.00616.38
7.3.170.0180.00316.44
7.3.160.0060.01016.43
7.3.130.0100.00714.44
7.3.120.0040.01614.81
7.3.110.0030.01514.93
7.3.100.0030.01014.65
7.3.90.0040.01414.75
7.3.80.0000.01114.68
7.3.70.0000.01514.48
7.3.60.0000.01514.79
7.3.50.0140.00014.73
7.3.40.0090.00614.81
7.3.30.0070.00714.42
7.3.20.0080.00616.43
7.3.10.0070.00716.33
7.3.00.0060.00916.31
7.2.330.0030.01416.74
7.2.320.0070.01316.68
7.2.310.0180.00316.62
7.2.300.0120.00416.72
7.2.290.0130.00316.57
7.2.260.0060.00815.08
7.2.250.0080.00814.94
7.2.240.0090.00614.75
7.2.230.0120.00314.82
7.2.220.0040.01514.61
7.2.210.0060.00614.63
7.2.200.0060.01014.92
7.2.190.0060.00614.73
7.2.180.0060.00314.89
7.2.170.0090.00314.82
7.2.160.0080.00815.06
7.2.150.0030.00616.48
7.2.140.0060.00616.85
7.2.130.0070.00716.65
7.2.120.0040.01416.91
7.2.110.0060.00616.84
7.2.100.0070.01016.87
7.2.90.0060.01017.04
7.2.80.0110.00416.93
7.2.70.0060.00816.95
7.2.60.0050.01216.79
7.2.50.0000.01916.78
7.2.40.0070.00717.00
7.2.30.0060.00616.64
7.2.20.0070.01016.97
7.2.10.0040.01116.68
7.2.00.0050.01018.00
7.1.330.0040.01015.73
7.1.320.0100.00615.72
7.1.310.0070.00715.71
7.1.300.0030.00915.59
7.1.290.0070.00715.58
7.1.280.0030.00615.67
7.1.270.0050.00815.57
7.1.260.0030.01015.62
7.1.250.0090.00915.62
7.1.240.0110.00315.55
7.1.230.0060.00615.66
7.1.220.0070.01015.61
7.1.210.0060.00915.74
7.1.200.0060.00615.59
7.1.190.0070.00715.70
7.1.180.0120.00415.54
7.1.170.0070.00715.43
7.1.160.0030.01015.35
7.1.150.0080.00815.46
7.1.140.0110.00415.55
7.1.130.0070.00715.72
7.1.120.0080.00415.70
7.1.110.0100.00315.69
7.1.100.0000.01216.86
7.1.90.0070.00315.67
7.1.80.0080.00815.70
7.1.70.0070.00516.25
7.1.60.0070.01017.25
7.1.50.0050.01416.22
7.1.40.0070.01015.77
7.1.30.0000.01515.39
7.1.20.0030.01015.61
7.1.10.0080.00615.63
7.1.00.0000.04219.01
7.0.330.0100.00715.26
7.0.320.0040.01115.32
7.0.310.0030.01215.15
7.0.300.0070.01015.32
7.0.290.0070.00715.10
7.0.280.0080.00415.13
7.0.270.0070.00415.15
7.0.260.0100.00315.19
7.0.250.0060.00615.24
7.0.240.0070.01015.28
7.0.230.0080.00015.53
7.0.220.0060.00615.25
7.0.210.0000.01515.28
7.0.200.0560.01014.95
7.0.190.0000.01615.24
7.0.180.0070.01015.41
7.0.170.0000.01415.40
7.0.160.0090.00315.20
7.0.150.0070.00715.31
7.0.140.0040.01115.36
7.0.130.0000.01015.40
7.0.120.0140.00015.30
7.0.110.0060.00915.27
7.0.100.0080.00815.42
7.0.90.0040.00815.39
7.0.80.0040.01115.48
7.0.70.0030.01015.35
7.0.60.0050.03817.51
7.0.50.0070.02916.55
7.0.40.0060.04816.77
7.0.30.0190.04316.74
7.0.20.0180.03916.81
7.0.10.0110.01816.79
7.0.00.0050.03016.81
5.6.400.0030.01014.05
5.6.390.0140.00314.36
5.6.380.0110.00714.04
5.6.370.0070.00714.18
5.6.360.0030.00914.04
5.6.350.0040.01113.91
5.6.340.0040.01114.17
5.6.330.0050.00514.18
5.6.320.0030.01013.96
5.6.310.0070.01014.23
5.6.300.0100.00314.17
5.6.290.0070.01013.90
5.6.280.0040.02217.62
5.6.270.0100.00714.25
5.6.260.0030.01214.20
5.6.250.0120.00014.01
5.6.240.0030.00714.00
5.6.230.0030.01414.10
5.6.220.0060.00913.95
5.6.210.0030.04517.26
5.6.200.0080.04816.03
5.6.190.0090.02317.28
5.6.180.0050.04317.28
5.6.170.0240.03417.28
5.6.160.0100.04617.17
5.6.150.0130.02216.16
5.6.140.0080.04316.06
5.6.130.0080.04516.17
5.6.120.0050.04417.54
5.6.110.0100.03817.44
5.6.100.0110.03817.39
5.6.90.0080.04317.46
5.6.80.0060.04217.17
5.6.70.0090.00013.90
5.6.60.0070.00713.89
5.6.50.0110.00014.06
5.6.40.0030.00813.89
5.6.30.0050.00514.09
5.6.20.0040.00914.14
5.6.10.0000.01114.00
5.6.00.0030.00913.81
5.5.380.0070.00713.89
5.5.370.0090.00314.04
5.5.360.0030.00913.84
5.5.350.2090.02317.16
5.5.340.0060.04815.99
5.5.330.0090.04317.09
5.5.320.0180.04216.93
5.5.310.0150.03017.13
5.5.300.0060.02316.03
5.5.290.0030.03915.98
5.5.280.0030.04717.37
5.5.270.0030.02517.40
5.5.260.0070.03317.29
5.5.250.0040.04617.33
5.5.240.0130.03516.89
5.5.230.0100.00314.10
5.5.220.0100.00313.81
5.5.210.0070.00713.86
5.5.200.0030.00913.71
5.5.190.0080.00413.76
5.5.180.0100.00313.79
5.5.170.0070.00714.09
5.5.160.0090.00613.93
5.5.150.0000.01513.98
5.5.140.0000.01814.02
5.5.130.0030.00614.02
5.5.120.0070.00713.96
5.5.110.0060.00313.93
5.5.100.0090.00013.81
5.5.90.0040.00813.52
5.5.80.0070.00713.94
5.5.70.0040.01113.54
5.5.60.0030.00613.66
5.5.50.0000.01513.81
5.5.40.0070.01013.77
5.5.30.0100.00714.07
5.5.20.0060.00613.95
5.5.10.0080.00413.96
5.5.00.0000.01013.73

preferences:
58.71 ms | 401 KiB | 5 Q