3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __toInteger(){ return 'Hi!!'; } } $t = new Test(); echo '$t says '.$t;

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.40.0030.01018.73
8.3.30.0170.00318.81
8.3.20.0040.00418.70
8.3.10.0040.00420.41
8.3.00.0080.00019.25
8.2.170.0130.00722.96
8.2.160.0100.00722.26
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00419.77
8.2.110.0030.00620.38
8.2.100.0040.00817.84
8.2.90.0040.00418.03
8.2.80.0000.00817.97
8.2.70.0040.00717.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0000.00818.34
8.2.30.0050.00219.83
8.2.20.0000.00717.59
8.2.10.0000.00817.66
8.2.00.0000.00817.77
8.1.270.0070.00023.99
8.1.260.0100.00326.35
8.1.250.0030.00628.09
8.1.240.0040.00422.05
8.1.230.0060.00620.89
8.1.220.0050.00317.74
8.1.210.0030.00619.04
8.1.200.0030.00617.13
8.1.190.0030.00617.66
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0000.00718.72
8.1.150.0050.00318.52
8.1.140.0070.00017.29
8.1.130.0070.00017.80
8.1.120.0000.00717.29
8.1.110.0050.00317.30
8.1.100.0040.00417.42
8.1.90.0030.00517.42
8.1.80.0030.00317.39
8.1.70.0000.00717.28
8.1.60.0050.00317.41
8.1.50.0000.00717.41
8.1.40.0060.00317.48
8.1.30.0030.00517.47
8.1.20.0060.00317.60
8.1.10.0040.00417.55
8.1.00.0040.00417.52
8.0.300.0040.00419.84
8.0.290.0000.00716.88
8.0.280.0000.00718.40
8.0.270.0000.00717.20
8.0.260.0080.00016.88
8.0.250.0080.00016.98
8.0.240.0020.00516.93
8.0.230.0030.00416.88
8.0.220.0030.00316.95
8.0.210.0000.00716.88
8.0.200.0040.00416.89
8.0.190.0050.00216.92
8.0.180.0040.00416.85
8.0.170.0050.00216.92
8.0.160.0000.00716.88
8.0.150.0000.00916.85
8.0.140.0030.00716.88
8.0.130.0070.00013.37
8.0.120.0020.00516.86
8.0.110.0030.00616.89
8.0.100.0000.00816.98
8.0.90.0000.00716.71
8.0.80.0060.00816.84
8.0.70.0000.00716.88
8.0.60.0050.00316.89
8.0.50.0000.00816.95
8.0.30.0070.01216.91
8.0.20.0120.00917.40
8.0.10.0000.00716.87
8.0.00.0090.00916.70
7.4.330.0000.00614.67
7.4.320.0040.00416.45
7.4.300.0030.00316.40
7.4.290.0070.00016.49
7.4.280.0050.00216.36
7.4.270.0000.00616.40
7.4.260.0000.00513.19
7.4.250.0040.00416.54
7.4.240.0070.00016.52
7.4.230.0000.00716.38
7.4.220.0110.00816.36
7.4.210.0090.00816.51
7.4.200.0040.00416.38
7.4.190.0030.00316.57
7.4.160.0120.00916.61
7.4.150.0130.00417.40
7.4.140.0120.01517.86
7.4.130.0060.01016.65
7.4.120.0110.00616.30
7.4.110.0030.01316.68
7.4.100.0110.00716.54
7.4.90.0130.00316.64
7.4.80.0070.01319.04
7.4.70.0100.01016.62
7.4.60.0130.00316.50
7.4.50.0030.00316.44
7.4.40.0080.00522.27
7.4.30.0070.01016.65
7.4.00.0050.01214.93
7.3.330.0030.00313.33
7.3.320.0050.00013.12
7.3.310.0030.00316.19
7.3.300.0050.00216.16
7.3.290.0100.00716.25
7.3.280.0100.00916.25
7.3.270.0120.00617.40
7.3.260.0090.00818.24
7.3.250.0030.01516.46
7.3.240.0100.00716.34
7.3.230.0120.00616.52
7.3.210.0120.00616.32
7.3.200.0090.00919.39
7.3.190.0120.00916.25
7.3.180.0130.00416.41
7.3.170.0170.00016.40
7.3.160.0130.00316.34
7.3.120.0120.00514.67
7.3.110.0030.01414.85
7.3.100.0000.01514.76
7.3.90.0060.00614.78
7.3.80.0000.01214.48
7.3.70.0030.01014.77
7.3.60.0080.00414.54
7.3.50.0040.01114.68
7.3.40.0080.00514.82
7.3.30.0040.00814.73
7.3.20.0030.00616.59
7.3.10.0060.00916.50
7.3.00.0070.00516.42
7.2.330.0110.00616.62
7.2.320.0140.00416.61
7.2.310.0040.01816.44
7.2.300.0160.00016.38
7.2.290.0100.00616.49
7.2.250.0070.01114.89
7.2.240.0070.01315.01
7.2.230.0140.00414.81
7.2.220.0070.01014.65
7.2.210.0090.00914.91
7.2.200.0040.01214.82
7.2.190.0070.00714.88
7.2.180.0030.01614.66
7.2.170.0040.01214.86
7.2.130.0070.00716.51
7.2.120.0070.00716.71
7.2.110.0070.00316.69
7.2.100.0070.00716.78
7.2.90.0090.00316.84
7.2.80.0040.00416.75
7.2.70.0040.00816.47
7.2.60.0050.00616.55
7.2.50.0070.00416.75
7.2.40.0100.00316.63
7.2.30.0030.01216.56
7.2.20.0030.00616.43
7.2.10.0000.01016.61
7.2.00.0100.00518.13
7.1.330.0000.01515.60
7.1.320.0060.00915.66
7.1.310.0040.01115.60
7.1.300.0030.01215.62
7.1.290.0090.00615.72
7.1.280.0060.00315.56
7.1.270.0040.00815.50
7.1.260.0040.01115.43
7.1.250.0070.00015.63
7.1.200.0000.01115.52
7.1.100.0510.01215.82
7.1.70.0020.00517.00
7.1.60.0070.00719.40
7.1.50.0000.01116.72
7.1.00.0030.05722.44
7.0.200.0050.00316.75
7.0.140.0030.06322.17
7.0.60.0100.08019.92
7.0.50.0030.04317.85
7.0.40.0130.08320.09
7.0.30.0270.04320.13
7.0.20.0170.04020.18
7.0.10.0070.08320.17
7.0.00.0100.07720.25
5.6.280.0000.07721.07
5.6.210.0100.08020.75
5.6.200.0100.06718.19
5.6.190.0030.08720.41
5.6.180.0300.06720.55
5.6.170.0230.05020.45
5.6.160.0130.07320.45
5.6.150.0030.04318.14
5.6.140.0070.05718.21
5.6.130.0100.08318.28
5.6.120.0030.04320.96
5.6.110.0130.07720.97
5.6.100.0170.07721.13
5.6.90.0130.07321.13
5.6.80.0070.03720.49
5.6.70.0270.04720.52
5.5.350.4170.04320.34
5.5.340.0030.06017.99
5.5.330.0070.08320.29
5.5.320.0300.05720.57
5.5.310.0200.06320.34
5.5.300.0070.07318.02
5.5.290.0070.05717.99
5.5.280.0100.08020.85
5.5.270.0030.04720.87
5.5.260.0130.07720.87
5.5.250.0030.04020.55
5.5.240.0070.07720.19
5.4.450.0170.07019.57
5.4.440.0100.07019.18
5.4.430.0100.04319.17
5.4.420.0070.06319.52
5.4.410.0000.04719.34
5.4.400.0070.04719.01
5.4.390.0070.08019.16
5.4.380.0070.07719.14
5.4.370.0070.04019.12
5.4.360.0030.07719.21
5.4.350.0100.05319.11
5.4.340.0100.05719.20
5.4.320.0070.07718.87
5.4.310.0070.04719.24
5.4.300.0130.03018.88
5.4.290.0070.06719.23
5.4.280.0000.04319.15
5.4.270.0070.06018.97
5.4.260.0130.07019.23
5.4.250.0100.06319.21
5.4.240.0100.05019.23
5.4.230.0000.08019.11
5.4.220.0100.04719.11
5.4.210.0100.07318.91
5.4.200.0130.06719.00
5.4.190.0030.05019.14
5.4.180.0000.08019.11
5.4.170.0170.07019.06
5.4.160.0070.08018.83
5.4.150.0130.07718.96
5.4.140.0070.07716.33
5.4.130.0030.04016.45
5.4.120.0030.03716.29
5.4.110.0070.04716.43
5.4.100.0070.07316.48
5.4.90.0100.07316.34
5.4.80.0070.07716.41
5.4.70.0200.05316.47
5.4.60.0030.05316.41
5.4.50.0130.06316.44
5.4.40.0100.07316.40
5.4.30.0100.06716.25
5.4.20.0000.07716.36
5.4.10.0000.07716.37
5.4.00.0130.04715.76
5.3.290.0100.05014.71
5.3.280.0130.07014.62
5.3.270.0100.08014.66
5.3.260.0130.07014.52
5.3.250.0130.06714.49
5.3.240.0100.07014.61
5.3.230.0030.05314.63
5.3.220.0070.07714.59
5.3.210.0030.08314.71
5.3.200.0070.07714.56
5.3.190.0100.05314.55
5.3.180.0170.06014.60
5.3.170.0200.04014.56
5.3.160.0130.07014.70
5.3.150.0000.08314.63
5.3.140.0130.06714.60
5.3.130.0100.07314.47
5.3.120.0130.04314.62
5.3.110.0100.06714.54
5.3.100.0030.06314.04
5.3.90.0030.05314.05
5.3.80.0000.05714.06
5.3.70.0130.06714.18
5.3.60.0100.06714.07
5.3.50.0030.07713.98
5.3.40.0200.03713.95
5.3.30.0100.05313.87
5.3.20.0030.06013.61
5.3.10.0100.06713.80
5.3.00.0100.04013.71
5.2.170.0100.05011.14
5.2.160.0070.06311.20
5.2.150.0030.06711.19
5.2.140.0030.06711.20
5.2.130.0100.05711.15
5.2.120.0070.04011.11
5.2.110.0070.05311.25
5.2.100.0070.06011.02
5.2.90.0030.06311.13
5.2.80.0070.06711.05
5.2.70.0070.06010.98
5.2.60.0030.05711.09
5.2.50.0030.06311.02
5.2.40.0000.04711.04
5.2.30.0030.06710.96
5.2.20.0130.03010.93
5.2.10.0030.06710.86
5.2.00.0070.04010.63
5.1.60.0030.0439.96
5.1.50.0000.0279.97
5.1.40.0030.0279.88
5.1.30.0030.03010.34
5.1.20.0030.02710.39
5.1.10.0000.02710.11
5.1.00.0070.02010.11
5.0.50.0000.0208.68
5.0.40.0000.0208.52
5.0.30.0000.0308.52
5.0.20.0000.0208.52
5.0.10.0000.0208.52
5.0.00.0030.0308.52
4.4.90.0000.0408.52
4.4.80.0000.0378.52
4.4.70.0070.0278.52
4.4.60.0070.0178.52
4.4.50.0030.0338.52
4.4.40.0000.0308.52
4.4.30.0070.0108.52
4.4.20.0030.0138.52
4.4.10.0000.0178.52
4.4.00.0070.0208.52
4.3.110.0000.0178.52
4.3.100.0030.0138.52
4.3.90.0000.0178.52
4.3.80.0000.0238.52
4.3.70.0000.0138.52
4.3.60.0030.0138.52
4.3.50.0000.0178.52
4.3.40.0000.0238.52
4.3.30.0000.0178.52
4.3.20.0000.0138.52
4.3.10.0000.0178.52
4.3.00.0000.0138.52

preferences:
53.16 ms | 400 KiB | 5 Q