3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyTest { public function __toString() { return 'string'; } } echo (string) new MyTest();

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.01418.43
8.3.50.0120.00916.36
8.3.40.0070.01018.68
8.3.30.0040.01118.59
8.3.20.0080.00019.02
8.3.10.0000.00721.73
8.3.00.0070.00020.96
8.2.180.0140.00718.38
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00725.66
8.2.140.0050.00324.66
8.2.130.0040.00419.58
8.2.120.0040.00426.35
8.2.110.0000.00921.03
8.2.100.0110.00017.59
8.2.90.0060.00317.63
8.2.80.0000.00817.97
8.2.70.0040.00417.93
8.2.60.0000.00818.22
8.2.50.0050.00318.10
8.2.40.0000.00820.50
8.2.30.0030.00519.25
8.2.20.0020.00518.02
8.2.10.0050.00218.05
8.2.00.0050.00217.70
8.1.280.0140.00725.92
8.1.270.0080.00022.14
8.1.260.0090.00028.09
8.1.250.0030.00528.09
8.1.240.0090.00022.47
8.1.230.0040.00720.82
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0080.00017.25
8.1.180.0030.00518.10
8.1.170.0040.00718.70
8.1.160.0000.00818.85
8.1.150.0000.00720.24
8.1.140.0000.00719.51
8.1.130.0000.00717.63
8.1.120.0030.00417.22
8.1.110.0040.00417.33
8.1.100.0050.00217.39
8.1.90.0000.00717.36
8.1.80.0080.00017.38
8.1.70.0000.00717.28
8.1.60.0000.00817.43
8.1.50.0040.00417.36
8.1.40.0080.00017.34
8.1.30.0000.00817.56
8.1.20.0060.00317.48
8.1.10.0040.00417.50
8.1.00.0040.00717.35
8.0.300.0040.00420.04
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0100.00017.16
8.0.260.0000.00617.25
8.0.250.0030.00316.88
8.0.240.0000.00616.84
8.0.230.0070.00016.79
8.0.220.0040.00416.73
8.0.210.0000.00716.79
8.0.200.0000.00616.89
8.0.190.0040.00416.85
8.0.180.0040.00416.70
8.0.170.0040.00416.87
8.0.160.0000.00816.89
8.0.150.0040.00416.77
8.0.140.0000.00716.74
8.0.130.0000.00513.25
8.0.120.0040.00416.81
8.0.110.0000.00816.76
8.0.100.0070.00016.81
8.0.90.0000.00816.69
8.0.80.0000.01516.88
8.0.70.0050.00316.93
8.0.60.0000.00716.66
8.0.50.0000.00716.77
8.0.30.0060.01216.90
8.0.20.0160.00817.40
8.0.10.0040.00416.80
8.0.00.0080.01116.56
7.4.330.0020.00215.55
7.4.320.0030.00316.45
7.4.300.0000.00616.53
7.4.290.0070.00016.42
7.4.280.0070.00016.41
7.4.270.0000.00716.49
7.4.260.0000.00716.53
7.4.250.0050.00216.41
7.4.240.0070.00016.53
7.4.230.0030.00316.52
7.4.220.0130.00316.52
7.4.210.0090.00816.49
7.4.200.0030.00316.53
7.4.160.0080.00816.43
7.4.150.0150.00317.40
7.4.140.0060.01217.86
7.4.130.0090.00716.56
7.4.120.0060.01316.51
7.4.110.0130.00916.46
7.4.100.0170.01116.39
7.4.90.0060.01216.39
7.4.80.0180.00419.39
7.4.70.0000.01516.50
7.4.60.0040.01516.23
7.4.50.0070.00716.57
7.4.40.0030.01316.11
7.4.30.0100.00716.35
7.4.00.0070.00714.73
7.3.330.0030.00313.32
7.3.320.0000.00513.31
7.3.310.0000.00716.25
7.3.300.0060.00016.24
7.3.290.0040.00416.30
7.3.280.0080.01116.26
7.3.270.0110.00917.40
7.3.260.0110.00616.39
7.3.250.0100.00816.36
7.3.240.0120.00616.42
7.3.230.0150.00616.48
7.3.210.0130.00316.49
7.3.200.0060.01716.51
7.3.190.0060.01516.22
7.3.180.0030.01316.53
7.3.170.0080.00816.50
7.3.160.0100.00716.46
7.2.330.0070.01016.57
7.2.320.0100.00616.46
7.2.310.0130.00316.54
7.2.300.0090.01016.42
7.2.290.0030.01416.47
7.2.60.0220.00716.76
7.2.50.0070.00716.94
7.1.200.0080.00415.71
7.1.70.0030.01016.95
7.1.60.0110.00317.18
7.1.00.0070.07322.32
7.0.200.0510.00714.48
7.0.130.0200.06721.98
7.0.120.0130.05722.02
7.0.110.0070.08322.10
7.0.100.0070.06321.94
7.0.90.0030.08021.99
7.0.80.0070.08721.98
7.0.70.0130.07321.98
7.0.60.0130.07022.10
7.0.50.0070.08722.16
7.0.40.0100.05722.20
7.0.30.0170.07022.20
7.0.20.0200.07322.08
7.0.10.0130.05722.09
7.0.00.0100.06022.13
5.6.280.0100.08021.08
5.6.270.0130.07720.91
5.6.260.0070.08321.12
5.6.250.0130.06021.09
5.6.240.0100.08320.86
5.6.230.0130.08020.88
5.6.220.0130.05720.86
5.6.210.0100.07720.96
5.6.200.0030.07020.87
5.6.190.0130.05321.07
5.6.180.0130.08020.82
5.6.170.0130.07321.05
5.6.160.0070.05721.04
5.6.150.0070.08020.77
5.6.140.0070.07021.00
5.6.130.0100.06721.03
5.6.120.0370.05320.85
5.6.110.0100.08021.04
5.6.100.0130.07721.03
5.6.90.0200.06320.86
5.6.80.0170.05320.38
5.6.70.0100.05320.14
5.6.60.0130.05020.41
5.6.50.0170.04720.25
5.6.40.0130.05320.25
5.6.30.0230.06020.44
5.6.20.0100.07320.23
5.6.10.0170.04720.43
5.6.00.0100.06720.44

preferences:
57.79 ms | 401 KiB | 5 Q