3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public $test = "toto"; private $esaegaegt = "togaegegto"; public function jsencode(){ return json_encode(serialize($this)); } } $a = new A(); echo serialize($a);

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.0080.00818.30
8.3.50.0070.00816.48
8.3.40.0000.01418.67
8.3.30.0190.00418.67
8.3.20.0080.00018.91
8.3.10.0080.00020.48
8.3.00.0000.00817.63
8.2.180.0070.01416.38
8.2.170.0070.00722.96
8.2.160.0070.00722.25
8.2.150.0060.01224.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0060.00321.07
8.2.100.0030.00917.87
8.2.90.0060.00319.22
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00818.04
8.2.50.0030.00518.07
8.2.40.0040.00418.16
8.2.30.0000.00717.95
8.2.20.0040.00417.58
8.2.10.0000.00717.57
8.2.00.0040.00417.69
8.1.280.0080.00825.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.47
8.1.230.0080.00320.95
8.1.220.0040.00418.77
8.1.210.0000.00818.77
8.1.200.0090.00017.23
8.1.190.0030.00517.41
8.1.180.0000.00818.10
8.1.170.0040.00318.76
8.1.160.0000.00718.70
8.1.150.0000.00718.51
8.1.140.0080.00017.38
8.1.130.0040.00417.67
8.1.120.0030.00317.31
8.1.110.0030.00517.22
8.1.100.0000.00817.32
8.1.90.0030.00517.32
8.1.80.0050.00217.34
8.1.70.0040.00417.27
8.1.60.0040.00417.50
8.1.50.0030.00617.42
8.1.40.0000.00717.38
8.1.30.0040.00417.55
8.1.20.0000.00817.50
8.1.10.0040.00417.57
8.1.00.0040.00417.37
8.0.300.0040.00419.83
8.0.290.0090.00016.75
8.0.280.0000.00718.36
8.0.270.0070.00017.15
8.0.260.0030.00318.62
8.0.250.0040.00416.87
8.0.240.0000.00816.84
8.0.230.0000.00816.96
8.0.220.0000.00716.91
8.0.210.0070.00016.94
8.0.200.0070.00016.93
8.0.190.0030.00316.85
8.0.180.0000.00916.92
8.0.170.0030.00516.99
8.0.160.0000.00716.78
8.0.150.0050.00316.74
8.0.140.0050.00516.86
8.0.130.0000.00513.27
8.0.120.0000.00716.81
8.0.110.0040.00416.89
8.0.100.0030.00316.87
8.0.90.0030.00416.90
8.0.80.0110.00416.77
8.0.70.0000.00816.94
8.0.60.0020.00516.77
8.0.50.0040.00416.82
8.0.30.0070.01416.90
8.0.20.0120.01217.07
8.0.10.0040.00416.95
8.0.00.0130.00616.89
7.4.330.0020.00214.53
7.4.320.0030.00316.29
7.4.300.0000.00616.48
7.4.290.0030.00316.43
7.4.280.0060.00316.56
7.4.270.0000.00616.44
7.4.260.0000.00513.17
7.4.250.0030.00616.40
7.4.240.0040.00416.40
7.4.230.0070.00016.34
7.4.220.0060.01316.45
7.4.210.0100.00816.53
7.4.200.0000.00716.63
7.4.190.0070.00016.57
7.4.160.0030.01316.39
7.4.150.0140.00317.07
7.4.140.0120.00517.22
7.4.130.0130.00316.49
7.4.120.0080.00916.54
7.4.110.0060.01216.29
7.4.100.0120.00616.41
7.4.90.0090.00916.52
7.4.80.0160.00618.80
7.4.70.0030.01516.71
7.4.60.0090.00916.42
7.4.50.0040.00416.36
7.4.40.0040.01122.27
7.4.30.0130.00316.42
7.4.00.0110.00414.81
7.3.330.0000.00613.29
7.3.320.0030.00313.34
7.3.310.0050.00216.20
7.3.300.0000.00716.15
7.3.290.0110.00416.29
7.3.280.0060.01116.32
7.3.270.0060.00917.07
7.3.260.0080.01318.24
7.3.250.0100.00916.33
7.3.240.0090.00916.30
7.3.230.0100.00616.39
7.3.210.0090.01416.28
7.3.200.0040.01219.39
7.3.190.0140.00816.41
7.3.180.0080.00816.46
7.3.170.0120.00416.29
7.3.160.0030.01216.63
7.3.120.0030.01015.07
7.3.10.0060.00616.58
7.3.00.0030.01016.59
7.2.330.0090.00916.34
7.2.320.0090.00916.52
7.2.310.0100.00716.36
7.2.300.0070.01816.59
7.2.290.0110.00716.18
7.2.130.0070.00716.84
7.2.120.0070.01016.51
7.2.110.0070.00316.80
7.2.100.0130.00316.57
7.2.90.0070.01016.78
7.2.80.0100.00616.73
7.2.70.0030.00616.56
7.2.60.0100.00616.72
7.2.50.0030.01316.71
7.2.40.0040.00816.84
7.2.30.0040.01116.92
7.2.20.0080.00616.74
7.2.10.0060.00916.62
7.2.00.0050.00818.04
7.1.250.0000.01115.73
7.1.200.0070.00415.64
7.1.100.0060.00618.13
7.1.70.0000.01016.67
7.1.60.0070.01819.40
7.1.50.0040.01816.53
7.1.00.0030.07322.47
7.0.200.0000.00716.70
7.0.140.0030.07321.92
7.0.90.0500.07719.89
7.0.80.0500.04720.06
7.0.70.0470.03719.84
7.0.60.0600.04719.82
7.0.50.0600.06720.23
7.0.40.0100.07320.04
7.0.30.0100.08720.19
7.0.20.0030.04320.14
7.0.10.0130.07720.08
7.0.00.0070.05020.17
5.6.280.0000.07020.82
5.6.240.0130.07720.55
5.6.230.0130.07320.64
5.6.220.0000.05020.65
5.6.210.0100.08320.61
5.6.200.0100.06320.96
5.6.190.0100.09321.04
5.6.180.0100.06021.05
5.6.170.0030.07721.05
5.6.160.0100.07721.04
5.6.150.0130.08021.17
5.6.140.0200.06720.96
5.6.130.0070.08721.05
5.6.120.0130.06021.09
5.6.110.0070.04020.99
5.6.100.0070.08021.07
5.6.90.0130.07321.01
5.6.80.0100.08020.46
5.6.70.0030.07720.34
5.6.60.0100.07020.40
5.6.50.0130.07020.48
5.6.40.0070.04720.33
5.6.30.0070.05320.40
5.6.20.0070.07720.52
5.6.10.0070.07020.40
5.6.00.0170.07020.37
5.5.380.0070.04720.37
5.5.370.0070.08020.37
5.5.360.0170.04320.31
5.5.350.0070.08320.30
5.5.340.0130.07320.63
5.5.330.0100.04020.81
5.5.320.0170.07020.92
5.5.310.0000.05020.90
5.5.300.0170.04720.73
5.5.290.0070.04720.77
5.5.280.0130.07720.88
5.5.270.0070.04020.78
5.5.260.0000.08720.82
5.5.250.0070.05320.73
5.5.240.0070.05320.30
5.5.230.0030.05020.17
5.5.220.0030.05320.25
5.5.210.0070.03720.09
5.5.200.0070.07320.23
5.5.190.0100.05020.15
5.5.180.0030.05020.15
5.5.160.0070.05320.24
5.5.150.0070.08720.25
5.5.140.0130.04020.11
5.5.130.0070.07020.16
5.5.120.0070.07020.14
5.5.110.0070.08320.21
5.5.100.0100.07720.05
5.5.90.0130.04020.00
5.5.80.0070.08020.06
5.5.70.0030.08020.00
5.5.60.0130.06720.00
5.5.50.0030.07720.06
5.5.40.0130.04319.93
5.5.30.0100.07020.15
5.5.20.0130.07320.09
5.5.10.0170.07320.05
5.5.00.0070.07320.06
5.4.450.0100.07319.46
5.4.440.0070.07319.46
5.4.430.0070.05319.27
5.4.420.0070.07319.27
5.4.410.0100.07019.27
5.4.400.0030.05018.85
5.4.390.0130.07319.02
5.4.380.0030.04719.04
5.4.370.0070.04718.94
5.4.360.0070.04719.23
5.4.350.0030.04719.13
5.4.340.0100.07319.16
5.4.320.0030.08019.03
5.4.310.0070.06719.12
5.4.300.0030.08018.89
5.4.290.0030.08319.04
5.4.280.0070.08019.20
5.4.270.0100.06319.23
5.4.260.0000.06319.15
5.4.250.0030.07319.11
5.4.240.0070.07318.93
5.4.230.0130.06719.02
5.4.220.0070.06319.15
5.4.210.0070.07019.15
5.4.200.0070.06719.15
5.4.190.0030.07718.94
5.4.180.0170.07019.22
5.4.170.0030.04719.04
5.4.160.0100.04019.07
5.4.150.0100.03719.07
5.4.140.0100.07016.45
5.4.130.0000.04016.29
5.4.120.0130.06016.29
5.4.110.0070.04016.57
5.4.100.0030.04016.39
5.4.90.0070.07016.47
5.4.80.0070.07316.42
5.4.70.0000.05716.48
5.4.60.0030.06316.34
5.4.50.0070.06316.47
5.4.40.0070.07016.37
5.4.30.0070.07316.44
5.4.20.0030.04016.30
5.4.10.0070.07016.36
5.4.00.0000.07715.82
5.3.290.0070.07014.59
5.3.280.0030.07714.52
5.3.270.0030.06014.66
5.3.260.0130.06014.52
5.3.250.0000.04014.61
5.3.240.0070.03714.58
5.3.230.0100.07314.64
5.3.220.0000.07314.55
5.3.210.0070.04714.65
5.3.200.0130.07014.49
5.3.190.0070.05014.67
5.3.180.0000.05014.68
5.3.170.0070.07714.57
5.3.160.0030.04714.69
5.3.150.0070.07714.66
5.3.140.0070.06014.67
5.3.130.0070.05314.63
5.3.120.0030.05314.46
5.3.110.0130.06014.51
5.3.100.0030.04713.98
5.3.90.0070.08014.08
5.3.80.0070.06313.95
5.3.70.0070.04314.07
5.3.60.0000.04014.05
5.3.50.0070.06713.87
5.3.40.0030.04313.83
5.3.30.0000.04013.88
5.3.20.0070.07013.70
5.3.10.0030.07713.73
5.3.00.0100.06313.62
5.2.170.0030.06311.13
5.2.160.0100.05711.13
5.2.150.0070.05011.17
5.2.140.0030.03011.07
5.2.130.0070.03010.98
5.2.120.0030.06011.19
5.2.110.0070.06011.16
5.2.100.0000.04011.11
5.2.90.0030.03011.09
5.2.80.0070.05011.08
5.2.70.0030.05311.18
5.2.60.0000.06710.91
5.2.50.0030.05011.13
5.2.40.0000.04011.06
5.2.30.0100.05711.09
5.2.20.0100.04310.87
5.2.10.0000.04310.96
5.2.00.0000.04010.61
5.1.60.0030.05010.00
5.1.50.0100.04010.11
5.1.40.0000.0609.98
5.1.30.0070.04310.25
5.1.20.0000.03010.37
5.1.10.0030.02710.09
5.1.00.0070.04310.18
5.0.50.0030.0438.64
5.0.40.0000.0478.50
5.0.30.0000.0708.31
5.0.20.0030.0408.08
5.0.10.0070.0238.16
5.0.00.0070.0408.16
4.4.90.0000.0176.85
4.4.80.0030.0336.85
4.4.70.0000.0376.85
4.4.60.0000.0206.85
4.4.50.0070.0236.85
4.4.40.0000.0576.85
4.4.30.0000.0376.85
4.4.20.0030.0336.85
4.4.10.0030.0336.85
4.4.00.0070.0506.85
4.3.110.0000.0376.85
4.3.100.0030.0336.85
4.3.90.0070.0236.85
4.3.80.0030.0506.85
4.3.70.0000.0306.85
4.3.60.0030.0176.85
4.3.50.0000.0376.85
4.3.40.0000.0536.85
4.3.30.0000.0306.85
4.3.20.0000.0276.85
4.3.10.0030.0336.85
4.3.00.0000.0376.85

preferences:
41.28 ms | 401 KiB | 5 Q