3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function __construct(){ return new object(); } } class Bar { public function __construct(){ return "really?"; } } $foo = new Foo(); $bar = new Bar(); var_dump($foo); var_dump($bar);

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.0170.00318.68
8.3.50.0100.00821.93
8.3.40.0070.01118.84
8.3.30.0110.00419.04
8.3.20.0000.00720.33
8.3.10.0000.00723.63
8.3.00.0070.00019.11
8.2.180.0090.01218.66
8.2.170.0110.00322.96
8.2.160.0100.00322.13
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00519.54
8.2.110.0090.00021.13
8.2.100.0060.00917.84
8.2.90.0040.00417.91
8.2.80.0040.00417.97
8.2.70.0090.00017.91
8.2.60.0050.00318.11
8.2.50.0040.00418.10
8.2.40.0080.00019.36
8.2.30.0050.00319.10
8.2.20.0040.00417.56
8.2.10.0040.00417.91
8.2.00.0000.00717.55
8.1.280.0070.00725.92
8.1.270.0070.00718.75
8.1.260.0100.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.08
8.1.230.0130.00020.96
8.1.220.0030.00617.74
8.1.210.0030.00618.77
8.1.200.0060.00317.34
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00420.72
8.1.160.0050.00318.79
8.1.150.0000.00718.66
8.1.140.0040.00417.36
8.1.130.0000.00817.82
8.1.120.0000.00717.29
8.1.110.0000.00717.30
8.1.100.0000.00717.25
8.1.90.0000.00717.20
8.1.80.0040.00417.34
8.1.70.0000.00817.32
8.1.60.0080.00017.50
8.1.50.0000.00817.46
8.1.40.0040.00417.44
8.1.30.0030.00617.59
8.1.20.0040.00417.59
8.1.10.0000.00717.47
8.1.00.0040.00417.42
8.0.300.0020.00521.99
8.0.290.0040.00416.63
8.0.280.0050.00318.43
8.0.270.0000.00717.09
8.0.260.0030.00317.19
8.0.250.0050.00216.88
8.0.240.0030.00516.97
8.0.230.0030.00316.90
8.0.220.0030.00316.89
8.0.210.0070.00016.73
8.0.200.0000.00716.81
8.0.190.0040.00416.94
8.0.180.0040.00316.96
8.0.170.0000.00816.79
8.0.160.0040.00416.90
8.0.150.0110.00016.80
8.0.140.0040.00416.84
8.0.130.0030.00313.30
8.0.120.0040.00416.88
8.0.110.0030.00516.86
8.0.100.0000.00716.80
8.0.90.0040.00416.68
8.0.80.0090.00616.89
8.0.70.0030.00416.92
8.0.60.0000.00716.85
8.0.50.0040.00416.85
8.0.30.0110.00917.06
8.0.20.0110.00817.40
8.0.10.0040.00416.88
8.0.00.0120.01216.63
7.4.330.0050.00015.03
7.4.320.0030.00316.46
7.4.300.0030.00316.36
7.4.290.0030.00316.48
7.4.280.0040.00416.33
7.4.270.0000.00716.33
7.4.260.0030.00916.54
7.4.250.0070.00016.48
7.4.240.0000.00716.54
7.4.230.0060.00016.27
7.4.220.0090.00916.48
7.4.210.0090.00916.47
7.4.200.0070.00016.55
7.4.160.0080.00816.36
7.4.150.0100.00917.40
7.4.140.0090.00817.86
7.4.130.0120.00816.60
7.4.120.0130.00516.45
7.4.110.0040.01516.41
7.4.100.0070.01116.26
7.4.90.0140.00316.33
7.4.80.0000.01919.39
7.4.70.0140.00616.43
7.4.60.0040.01216.39
7.4.50.0030.00316.49
7.4.40.0060.01016.41
7.4.30.0080.00816.18
7.4.00.0060.00914.90
7.3.330.0000.00613.31
7.3.320.0050.00013.28
7.3.310.0000.00816.17
7.3.300.0000.00716.36
7.3.290.0090.00916.38
7.3.280.0090.01016.36
7.3.270.0040.01417.40
7.3.260.0090.00916.44
7.3.250.0070.01016.45
7.3.240.0140.00316.57
7.3.230.0120.00616.39
7.3.210.0030.01316.34
7.3.200.0180.00619.39
7.3.190.0070.00916.61
7.3.180.0070.01016.43
7.3.170.0110.01116.35
7.3.160.0140.00316.44
7.3.120.0080.00814.92
7.3.110.0100.00514.53
7.3.100.0080.00814.74
7.3.90.0030.00914.64
7.3.80.0050.00714.89
7.3.70.0040.01114.76
7.3.60.0020.01214.66
7.3.50.0060.00714.71
7.3.40.0030.01314.75
7.3.30.0080.00414.86
7.3.20.0020.00716.68
7.3.10.0060.00716.52
7.3.00.0040.00916.53
7.2.330.0150.00316.57
7.2.320.0110.00516.57
7.2.310.0100.00716.55
7.2.300.0060.01016.33
7.2.290.0080.00816.61
7.2.240.0090.00614.97
7.2.230.0050.01214.85
7.2.220.0020.00914.98
7.2.210.0060.01014.84
7.2.200.0050.00814.92
7.2.190.0090.00614.89
7.2.180.0040.01114.77
7.2.170.0050.01014.69
7.2.160.0080.00814.56
7.2.150.0050.00816.83
7.2.140.0070.00916.64
7.2.130.0090.00616.78
7.2.120.0010.01116.70
7.2.110.0130.00316.79
7.2.100.0070.01016.90
7.2.90.0080.00616.74
7.2.80.0070.00816.72
7.2.70.0030.00916.44
7.2.60.0050.00816.73
7.2.50.0050.00916.75
7.2.40.0120.00316.74
7.2.30.0030.00916.90
7.2.20.0010.01216.76
7.2.10.0050.00716.56
7.2.00.0050.00917.62
7.1.330.0140.00215.71
7.1.320.0080.00515.40
7.1.310.0040.00915.52
7.1.300.0050.00615.45
7.1.290.0050.00515.65
7.1.280.0070.00715.55
7.1.270.0070.00715.58
7.1.260.0080.00415.63
7.1.250.0070.00715.57
7.1.200.0070.00415.54
7.1.100.0040.00817.79
7.1.70.0000.00816.91
7.1.60.0060.01619.22
7.1.50.0090.00916.83
7.1.00.0100.07022.52
7.0.200.0050.00316.61
7.0.140.0030.03322.00
7.0.60.0130.07719.95
7.0.50.0030.04017.86
7.0.40.0130.08720.11
7.0.30.0300.07320.38
7.0.20.0200.04320.19
7.0.10.0030.06020.24
7.0.00.0030.06020.15
5.6.280.0070.07020.91
5.6.210.0130.03720.55
5.6.200.0100.08018.29
5.6.190.0070.04320.55
5.6.180.0400.06320.63
5.6.170.0300.05020.48
5.6.160.0130.08020.71
5.6.150.0070.03718.18
5.6.140.0030.07718.14
5.6.130.0100.04318.11
5.6.120.0030.09020.90
5.6.110.0200.06321.00
5.6.100.0170.07720.98
5.6.90.0130.08021.10
5.6.80.0100.07020.51
5.5.350.0230.08020.38
5.5.340.0070.04317.99
5.5.330.0130.04720.25
5.5.320.0270.04020.34
5.5.310.0170.04720.35
5.5.300.0070.06317.95
5.5.290.0030.04017.98
5.5.280.0030.08720.98
5.5.270.0030.07020.80
5.5.260.0130.07720.94
5.5.250.0100.07020.77
5.5.240.0000.04020.27
5.4.450.0170.06719.18
5.4.440.0300.06319.39
5.4.430.0200.05319.66
5.4.420.0200.05719.21
5.4.410.0170.05319.42
5.4.400.0230.04719.29
5.4.390.0230.05019.26
5.4.380.0230.05018.59
5.4.370.0130.05718.52
5.4.360.0200.05318.78
5.4.350.0400.03018.59
5.4.340.0170.06318.72
5.4.320.0170.05718.76
5.4.310.0170.05318.73
5.4.300.0170.05318.55
5.4.290.0200.05018.84
5.4.280.0170.05318.76
5.4.270.0300.04318.68
5.4.260.0130.05318.77
5.4.250.0100.06018.50
5.4.240.0200.05018.78
5.4.230.0070.06318.71
5.4.220.0100.06318.74
5.4.210.0230.05018.61
5.4.200.0100.06016.63
5.4.190.0330.05718.77
5.4.180.0270.04318.48
5.4.170.0100.07018.76
5.4.160.0130.05718.72
5.4.150.0170.05718.58
5.4.140.0200.05316.47
5.4.130.0200.05316.38
5.4.120.0170.05016.23
5.4.110.0130.05016.23
5.4.100.0170.05716.28
5.4.90.0230.05016.29
5.4.80.0170.05316.27
5.4.70.0300.04316.26
5.4.60.0130.05316.25
5.4.50.0200.04716.13
5.4.40.0270.06316.15
5.4.30.0130.06016.40
5.4.20.0230.06016.28
5.4.10.0130.05716.20
5.4.00.0170.05315.65
5.3.290.0270.05014.65
5.3.280.0200.05314.61
5.3.270.0230.06014.79
5.3.260.0170.06314.74
5.3.250.0500.05314.74
5.3.240.0230.05314.65
5.3.230.0130.06314.71
5.3.220.0300.04314.63
5.3.210.0230.06314.59
5.3.200.0270.04714.59
5.3.190.0230.05314.58
5.3.180.0270.05014.77
5.3.170.0270.05314.70
5.3.160.0200.06714.79
5.3.150.0270.07714.60
5.3.140.0200.06014.78
5.3.130.0230.05314.77
5.3.120.0230.06714.65
5.3.110.0230.07014.57
5.3.100.0130.06014.25
5.3.90.0100.08014.00
5.3.80.0200.06714.06
5.3.70.0270.05014.04
5.3.60.0300.04714.23
5.3.50.0370.05014.18
5.3.40.0100.06014.00
5.3.30.0200.06314.04
5.3.20.0130.06713.90
5.3.10.0270.05313.71
5.3.00.0330.06013.85
5.2.170.0270.03311.26
5.2.160.0200.04011.25
5.2.150.0200.05011.18
5.2.140.0130.05311.27
5.2.130.0270.03311.15
5.2.120.0170.04711.18
5.2.110.0100.05311.16
5.2.100.0100.04711.12
5.2.90.0170.04711.22
5.2.80.0170.04711.13
5.2.70.0170.04011.13
5.2.60.0100.04311.09
5.2.50.0130.04011.07
5.2.40.0300.03011.10
5.2.30.0230.03710.97
5.2.20.0170.03710.96
5.2.10.0100.04310.86
5.2.00.0170.03710.70
5.1.60.0170.03010.04
5.1.50.0170.03010.04
5.1.40.0070.04010.05
5.1.30.0130.03710.52
5.1.20.0230.02710.46
5.1.10.0170.03010.15
5.1.00.0170.03710.11
5.0.50.0100.0308.54
5.0.40.0100.0278.45
5.0.30.0070.0478.27
5.0.20.0070.0278.29
5.0.10.0100.0278.38
5.0.00.0130.0438.20
4.4.90.0000.0306.64
4.4.80.0100.0206.64
4.4.70.0030.0276.64
4.4.60.0100.0206.64
4.4.50.0030.0276.64
4.4.40.0200.0436.64
4.4.30.0030.0276.64
4.4.20.0070.0236.64
4.4.10.0070.0276.64
4.4.00.0100.0376.64
4.3.110.0070.0206.64
4.3.100.0000.0276.64
4.3.90.0030.0276.64
4.3.80.0030.0376.64
4.3.70.0030.0236.64
4.3.60.0100.0206.64
4.3.50.0000.0276.64
4.3.40.0170.0276.64
4.3.30.0030.0306.64
4.3.20.0070.0236.64
4.3.10.0070.0276.64
4.3.00.0070.0207.59

preferences:
55.32 ms | 401 KiB | 5 Q