3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function __toString() { return array(1,2,3); } } $x = new X; echo $x;

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.4.10.0040.01917.71
8.3.140.0040.00416.68
8.3.130.0040.00418.65
8.3.120.0030.00520.73
8.3.110.0090.00016.71
8.3.100.0040.01116.61
8.3.90.0040.00416.73
8.3.80.0090.00018.68
8.3.70.0070.00716.38
8.3.60.0090.01216.50
8.3.50.0220.00922.07
8.3.40.0090.00618.81
8.3.30.0110.00419.04
8.3.20.0040.00420.25
8.3.10.0030.00523.64
8.3.00.0040.00422.31
8.2.260.0040.01116.62
8.2.250.0030.00618.53
8.2.240.0030.00517.16
8.2.230.0070.00320.94
8.2.220.0030.00637.54
8.2.210.0040.00426.77
8.2.200.0030.00718.41
8.2.190.0120.00316.58
8.2.180.0100.00718.54
8.2.170.0070.00722.96
8.2.160.0090.00422.05
8.2.150.0080.00024.18
8.2.140.0050.00524.66
8.2.130.0100.00326.16
8.2.120.0030.00718.97
8.2.110.0070.00320.92
8.2.100.0040.00817.75
8.2.90.0000.00919.22
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0020.00517.99
8.2.20.0000.00817.69
8.2.10.0070.00017.64
8.2.00.0050.00217.76
8.1.300.0110.00420.15
8.1.290.0060.00318.88
8.1.280.0110.00425.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.98
8.1.230.0040.00819.08
8.1.220.0050.00317.75
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0000.00717.53
8.1.180.0090.00018.10
8.1.170.0080.00018.48
8.1.160.0040.00321.91
8.1.150.0050.00318.50
8.1.140.0000.00717.49
8.1.130.0030.00317.85
8.1.120.0030.00317.43
8.1.110.0000.00717.46
8.1.100.0040.00417.44
8.1.90.0090.00317.47
8.1.80.0030.00317.33
8.1.70.0000.00717.39
8.1.60.0000.00717.61
8.1.50.0040.00417.52
8.1.40.0050.00317.51
8.1.30.0050.00317.61
8.1.20.0000.00817.54
8.1.10.0000.00817.54
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.43
8.0.270.0000.00717.93
8.0.260.0030.00316.88
8.0.250.0040.00416.88
8.0.240.0030.00317.02
8.0.230.0040.00416.89
8.0.220.0040.00416.95
8.0.210.0100.00016.96
8.0.200.0030.00317.05
8.0.190.0040.00417.05
8.0.180.0000.00816.95
8.0.170.0040.00417.02
8.0.160.0080.00016.90
8.0.150.0000.01016.99
8.0.140.0000.00716.81
8.0.130.0000.00513.33
8.0.120.0030.00516.81
8.0.110.0070.00016.91
8.0.100.0040.00416.96
8.0.90.0080.00016.94
8.0.80.0060.00916.90
8.0.70.0050.00217.01
8.0.60.0000.00716.75
8.0.50.0040.00416.84
8.0.30.0200.00217.04
8.0.20.0060.01217.40
8.0.10.0000.00716.95
8.0.00.0120.00616.59
7.4.330.0050.00015.08
7.4.320.0000.00616.46
7.4.300.0030.00316.58
7.4.290.0060.00016.57
7.4.280.0030.00316.50
7.4.270.0040.00416.58
7.4.260.0030.00316.53
7.4.250.0040.00416.46
7.4.240.0030.00416.55
7.4.230.0000.00716.34
7.4.220.0070.01116.55
7.4.210.0090.00816.62
7.4.200.0000.00716.68
7.4.190.0000.00716.55
7.4.160.0050.01016.51
7.4.150.0100.00917.40
7.4.140.0110.00717.86
7.4.130.0090.00816.52
7.4.120.0160.00516.54
7.4.110.0100.00716.57
7.4.100.0070.01016.41
7.4.90.0070.01016.59
7.4.80.0130.00819.39
7.4.70.0100.00616.66
7.4.60.0060.01016.41
7.4.50.0000.00816.31
7.4.40.0070.01022.77
7.4.30.0090.00816.32
7.4.00.0030.01015.03
7.3.330.0000.00713.21
7.3.320.0060.00013.09
7.3.310.0000.00716.32
7.3.300.0060.00016.15
7.3.290.0050.00916.30
7.3.280.0080.01016.26
7.3.270.0110.01217.40
7.3.260.0080.00816.33
7.3.250.0110.00616.43
7.3.240.0070.01016.31
7.3.230.0070.01016.39
7.3.210.0060.01216.35
7.3.200.0070.01319.39
7.3.190.0060.01216.56
7.3.180.0130.00316.22
7.3.170.0070.00716.35
7.3.160.0120.00316.21
7.3.120.0100.00314.66
7.2.330.0060.00916.50
7.2.320.0060.01216.30
7.2.310.0060.01616.35
7.2.300.0090.00916.68
7.2.290.0160.00316.35
7.2.60.0000.01316.79
7.1.200.0130.00315.76
7.1.70.0110.00516.43
7.1.60.0130.01019.29
7.1.50.0090.01316.78
7.1.00.0000.08022.36
7.0.200.0050.00516.72
7.0.140.0030.07321.95
7.0.80.0100.04719.91
7.0.70.0170.06719.88
7.0.60.0100.06319.91
7.0.50.0030.08720.30
7.0.40.0100.08020.06
7.0.30.0100.04020.05
7.0.20.0030.09320.14
7.0.10.0070.08320.04
7.0.00.0070.04720.17
5.6.280.0000.07720.89
5.6.230.0000.04720.57
5.6.220.0130.03720.64
5.6.210.0100.07320.75
5.6.200.0100.05021.08
5.6.190.0000.09021.05
5.6.180.0100.08321.14
5.6.170.0030.06721.11
5.6.160.0000.09020.93
5.6.150.0030.08021.06
5.6.140.0000.08321.08
5.6.130.0230.06720.99
5.6.120.0070.08321.06
5.6.110.0170.04320.93
5.6.100.0070.08321.03
5.6.90.0000.08721.00
5.6.80.0070.08320.32
5.6.70.0130.06720.31
5.6.60.0070.08020.29
5.6.50.0070.06020.30
5.6.40.0030.04320.49
5.6.30.0070.06720.47
5.6.20.0070.04020.39
5.6.10.0030.06320.39
5.6.00.0030.05020.53
5.5.370.0100.07720.35
5.5.360.0100.04320.36
5.5.350.0200.07320.35
5.5.340.0200.06720.88
5.5.330.0030.06020.64
5.5.320.0030.08320.82
5.5.310.0130.05320.73
5.5.300.0070.07720.89
5.5.290.0070.04320.84
5.5.280.0100.08320.65
5.5.270.0070.09320.91
5.5.260.0000.08020.77
5.5.250.0130.08020.72
5.5.240.0170.07720.03
5.5.230.0100.07320.21
5.5.220.0170.04020.23
5.5.210.0130.06720.15
5.5.200.0070.06020.23
5.5.190.0030.04019.96
5.5.180.0100.06720.11
5.5.160.0030.09020.27
5.5.150.0100.05020.21
5.5.140.0100.06720.27
5.5.130.0000.04320.15
5.5.120.0030.08320.27
5.5.110.0000.06320.17
5.5.100.0100.07319.95
5.5.90.0070.05020.03
5.5.80.0000.07720.15
5.5.70.0100.06720.14
5.5.60.0070.08320.05
5.5.50.0100.07720.16
5.5.40.0000.05320.15
5.5.30.0000.07720.05
5.5.20.0070.06320.09
5.5.10.0100.05020.04
5.5.00.0030.05720.10
5.4.450.0100.05319.21
5.4.440.0030.08319.37
5.4.430.0070.08019.50
5.4.420.0070.07319.44
5.4.410.0030.05719.25
5.4.400.0030.04319.05
5.4.390.0200.03719.09
5.4.380.0130.04719.09
5.4.370.0000.05319.05
5.4.360.0000.08018.87
5.4.350.0030.04319.10
5.4.340.0030.04019.05
5.4.320.0100.05018.94
5.4.310.0100.04019.05
5.4.300.0000.04719.09
5.4.290.0100.03319.09
5.4.280.0030.03719.22
5.4.270.0000.05319.05
5.4.260.0130.07319.20
5.4.250.0070.08018.94
5.4.240.0100.05018.86
5.4.230.0170.05718.87
5.4.220.0100.06318.89
5.4.210.0030.08319.15
5.4.200.0030.06319.16
5.4.190.0100.06318.86
5.4.180.0130.07019.17
5.4.170.0000.04319.09
5.4.160.0000.08718.85
5.4.150.0030.04718.98
5.4.140.0070.05316.47
5.4.130.0170.04716.18
5.4.120.0100.03016.42
5.4.110.0070.07316.48
5.4.100.0130.05016.50
5.4.90.0070.07716.43
5.4.80.0070.03316.40
5.4.70.0100.06016.41
5.4.60.0130.03716.37
5.4.50.0170.03716.43
5.4.40.0030.06016.52
5.4.30.0100.06716.25
5.4.20.0100.05316.36
5.4.10.0100.05316.30
5.4.00.0130.05015.89
5.3.290.0030.05014.68
5.3.280.0100.05314.57
5.3.270.0030.04314.52
5.3.260.0130.04014.66
5.3.250.0030.07314.52
5.3.240.0130.07014.66
5.3.230.0070.04314.57
5.3.220.0130.06714.68
5.3.210.0200.05014.51
5.3.200.0000.05714.51
5.3.190.0070.05014.68
5.3.180.0100.05314.56
5.3.170.0130.07014.62
5.3.160.0070.08014.51
5.3.150.0070.05714.52
5.3.140.0070.06714.50
5.3.130.0100.05314.57
5.3.120.0030.08314.68
5.3.110.0070.04014.55
5.3.100.0070.06714.04
5.3.90.0100.04314.08
5.3.80.0030.04013.91
5.3.70.0030.04013.96
5.3.60.0030.08313.93
5.3.50.0100.05013.93
5.3.40.0100.04014.07
5.3.30.0130.03313.91
5.3.20.0100.03313.69
5.3.10.0030.04013.66
5.3.00.0130.04013.61
5.2.170.0000.05311.93
5.2.160.0100.05311.93
5.2.150.0100.04711.93
5.2.140.0070.05711.93
5.2.130.0070.03311.93
5.2.120.0030.06311.93
5.2.110.0100.05311.93
5.2.100.0070.04711.93
5.2.90.0000.03711.93
5.2.80.0000.05711.93
5.2.70.0100.07311.93
5.2.60.0070.04711.93
5.2.50.0030.06011.93
5.2.40.0030.03311.93
5.2.30.0100.04711.93
5.2.20.0070.04011.93
5.2.10.0000.06311.93
5.2.00.0000.03311.93
5.1.60.0000.02711.93
5.1.50.0070.03011.93
5.1.40.0070.03011.93
5.1.30.0030.02711.93
5.1.20.0070.05011.93
5.1.10.0030.05311.93
5.1.00.0000.03711.93
5.0.50.0100.04311.93
5.0.40.0100.03311.93
5.0.30.0070.04311.93
5.0.20.0030.03011.93
5.0.10.0000.02711.93
5.0.00.0070.03011.93
4.4.90.0000.03311.93
4.4.80.0000.03711.93
4.4.70.0030.03311.93
4.4.60.0030.01311.93
4.4.50.0000.02311.93
4.4.40.0030.05011.93
4.4.30.0030.03311.93
4.4.20.0000.03011.93
4.4.10.0000.03011.93
4.4.00.0070.04311.93
4.3.110.0000.03311.93
4.3.100.0000.02311.93
4.3.90.0000.01711.93
4.3.80.0000.05311.93
4.3.70.0000.02011.93
4.3.60.0000.03011.93
4.3.50.0070.02011.93
4.3.40.0000.05011.93
4.3.30.0000.02711.93
4.3.20.0000.03711.93
4.3.10.0000.03711.93
4.3.00.0000.03011.93

preferences:
27.01 ms | 403 KiB | 5 Q