3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; public function __construct($bar = "") { $this->bar = $bar; } } $array = array( new Foo("a"), new Foo("b"), new Foo("c"), new Foo("d") ); echo json_encode($array)."\n"; unset($array[2]); echo json_encode($array)."\n";

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.5.30.0110.00719.39
8.5.20.0100.00720.05
8.5.10.0060.00319.69
8.5.00.0120.00919.68
8.4.180.0090.01222.07
8.4.170.0120.00923.92
8.4.160.0120.00823.85
8.4.150.0090.00416.93
8.4.140.0130.00817.61
8.4.130.0070.00220.14
8.4.120.0160.00520.76
8.4.110.0070.00222.59
8.4.100.0100.01017.70
8.4.90.0160.00518.52
8.4.80.0130.00717.73
8.4.70.0120.00717.79
8.4.60.0110.00920.57
8.4.50.0100.00924.30
8.4.40.0060.00317.56
8.4.30.0130.00719.55
8.4.20.0030.00717.76
8.4.10.0100.00317.67
8.3.300.0130.00720.68
8.3.290.0160.00618.54
8.3.280.0120.00918.31
8.3.270.0090.01016.43
8.3.260.0050.00516.45
8.3.250.0140.00519.13
8.3.240.0130.00716.46
8.3.230.0130.00616.82
8.3.220.0100.00817.11
8.3.210.0080.00916.87
8.3.200.0040.00416.36
8.3.190.0120.00618.91
8.3.180.0060.00218.41
8.3.170.0070.01017.19
8.3.160.0070.01118.40
8.3.150.0040.00418.83
8.3.140.0080.00018.47
8.3.130.0070.01016.41
8.3.120.0110.00018.86
8.3.110.0040.00420.94
8.3.100.0040.00424.06
8.3.90.0000.00926.77
8.3.80.0060.00316.75
8.3.70.0100.00716.58
8.3.60.0140.00718.31
8.3.50.0100.00817.47
8.3.40.0060.00918.60
8.3.30.0030.01218.84
8.3.20.0030.00519.16
8.3.10.0080.00021.91
8.3.00.0060.00319.81
8.2.300.0160.00418.14
8.2.290.0100.00720.39
8.2.280.0070.00218.38
8.2.270.0060.00317.39
8.2.260.0030.00516.43
8.2.250.0080.00016.55
8.2.240.0140.00417.05
8.2.230.0050.00322.58
8.2.220.0080.00037.54
8.2.210.0030.00526.77
8.2.200.0030.00616.38
8.2.190.0070.01016.63
8.2.180.0100.00718.41
8.2.170.0110.00422.96
8.2.160.0030.01019.04
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0040.00420.39
8.2.120.0000.00826.35
8.2.110.0030.00720.96
8.2.100.0080.00417.91
8.2.90.0050.00218.16
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0050.00318.05
8.2.50.0080.00018.10
8.2.40.0020.00520.47
8.2.30.0040.00419.18
8.2.20.0040.00418.06
8.2.10.0060.00318.00
8.2.00.0030.00518.21
8.1.340.0120.00617.61
8.1.330.0100.00823.58
8.1.320.0080.01119.95
8.1.310.0080.00016.48
8.1.300.0060.00320.31
8.1.290.0050.00530.84
8.1.280.0040.01125.92
8.1.270.0060.00323.78
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00320.64
8.1.230.0080.00320.97
8.1.220.0050.00317.74
8.1.210.0040.00418.89
8.1.200.0040.00417.10
8.1.190.0030.00517.23
8.1.180.0030.00718.10
8.1.170.0050.00318.59
8.1.160.0040.00418.78
8.1.150.0000.00720.16
8.1.140.0000.00719.61
8.1.130.0000.00718.82
8.1.120.0000.00817.39
8.1.110.0040.00417.43
8.1.100.0000.00817.44
8.1.90.0080.00017.45
8.1.80.0000.00717.48
8.1.70.0000.00717.34
8.1.60.0030.00617.47
8.1.50.0000.00817.39
8.1.40.0030.00617.43
8.1.30.0080.00017.66
8.1.20.0020.00517.56
8.1.10.0000.00717.47
8.1.00.0000.00817.48
8.0.300.0040.00420.04
8.0.290.0040.00416.63
8.0.280.0080.00018.45
8.0.270.0000.00717.31
8.0.260.0000.00718.36
8.0.250.0040.00416.96
8.0.240.0050.00316.82
8.0.230.0000.00816.83
8.0.220.0030.00316.92
8.0.210.0030.00616.86
8.0.200.0030.00316.83
8.0.190.0040.00416.81
8.0.180.0050.00216.95
8.0.170.0040.00416.93
8.0.160.0040.00416.82
8.0.150.0060.00316.84
8.0.140.0080.00016.88
8.0.130.0030.00313.32
8.0.120.0040.00416.70
8.0.110.0050.00316.95
8.0.100.0020.00516.87
8.0.90.0030.00516.85
8.0.80.0060.01116.87
8.0.70.0020.00516.70
8.0.60.0000.00716.87
8.0.50.0040.00416.78
8.0.30.0090.01117.12
8.0.20.0120.00817.40
8.0.10.0040.00416.99
8.0.00.0170.00616.77
7.4.330.0000.00615.55
7.4.320.0030.00316.42
7.4.300.0070.00316.44
7.4.290.0030.00316.58
7.4.280.0040.00416.48
7.4.270.0050.00316.45
7.4.260.0000.00716.57
7.4.250.0000.00716.36
7.4.240.0000.00716.43
7.4.230.0000.00716.44
7.4.220.0070.01016.50
7.4.210.0030.01616.57
7.4.200.0030.00516.69
7.4.160.0070.00916.50
7.4.150.0090.00917.40
7.4.140.0120.01117.86
7.4.130.0060.01216.45
7.4.120.0090.01216.52
7.4.110.0070.01016.59
7.4.100.0090.00616.47
7.4.90.0070.01016.35
7.4.80.0130.00919.39
7.4.70.0210.01116.54
7.4.60.0100.00916.61
7.4.50.0090.00616.29
7.4.40.0070.01016.49
7.4.30.0120.00916.29
7.4.00.0050.01114.81
7.3.330.0050.00013.30
7.3.320.0060.00013.11
7.3.310.0070.00016.25
7.3.300.0040.00416.34
7.3.290.0050.00816.31
7.3.280.0100.01116.26
7.3.270.0060.01117.40
7.3.260.0090.00716.38
7.3.250.0110.00816.49
7.3.240.0080.01216.40
7.3.230.0040.01116.64
7.3.210.0150.00916.21
7.3.200.0100.01016.43
7.3.190.0110.00816.42
7.3.180.0000.01716.20
7.3.170.0150.00916.52
7.3.160.0100.00816.41
7.3.120.0080.00314.99
7.3.110.0100.00714.59
7.3.100.0060.00614.39
7.3.90.0060.00314.78
7.3.80.0040.01114.54
7.3.70.0030.00614.80
7.3.60.0070.00414.68
7.3.50.0080.00314.68
7.3.40.0040.00814.24
7.3.30.0070.01014.60
7.3.20.0070.00716.45
7.3.10.0070.01016.26
7.3.00.0080.00616.30
7.2.330.0130.00516.53
7.2.320.0120.00616.73
7.2.310.0180.00416.78
7.2.300.0070.01016.78
7.2.290.0180.00416.77
7.2.250.0180.00014.56
7.2.240.0100.01014.57
7.2.230.0100.00715.19
7.2.220.0110.00415.15
7.2.210.0070.00314.52
7.2.200.0030.01014.72
7.2.190.0000.01214.96
7.2.180.0030.01014.97
7.2.170.0070.00315.00
7.2.130.0090.00316.95
7.2.120.0040.01116.57
7.2.110.0130.00716.85
7.2.100.0030.01016.58
7.2.90.0160.00316.78
7.2.80.0040.01116.86
7.2.70.0090.00616.80
7.2.60.0160.00017.08
7.2.50.0040.01116.94
7.2.40.0060.01016.73
7.2.30.0140.00316.57
7.2.20.0110.00416.99
7.2.10.0070.00716.58
7.2.00.0070.00716.94
7.1.330.0100.00615.44
7.1.320.0030.00915.79
7.1.310.0050.00515.66
7.1.300.0040.00815.75
7.1.290.0000.01015.32
7.1.280.0080.00815.36
7.1.270.0140.00015.79
7.1.260.0030.01015.71
7.1.250.0060.00515.67
7.1.240.0060.00315.79
7.1.230.0100.00315.80
7.1.220.0130.00315.60
7.1.210.0060.00915.87
7.1.200.0040.01115.93
7.1.190.0060.00615.80
7.1.180.0040.00715.72
7.1.170.0040.01115.81
7.1.160.0110.00615.61
7.1.150.0030.01015.78
7.1.140.0110.00715.84
7.1.130.0030.01015.83
7.1.120.0000.00815.87
7.1.110.0100.00315.74
7.1.100.0060.00615.72
7.1.90.0100.00315.89
7.1.80.0100.00715.89
7.1.70.0070.00516.38
7.1.60.0060.00716.44
7.1.50.0100.00928.38
7.1.40.0070.01225.04
7.1.30.0140.00725.22
7.1.20.0100.01125.01
7.1.10.0110.00716.14
7.1.00.0070.00516.12
7.0.330.0060.00615.39
7.0.320.0090.00315.11
7.0.310.0060.00915.16
7.0.300.0090.00915.41
7.0.290.0000.00915.32
7.0.280.0090.00415.29
7.0.270.0130.00715.45
7.0.260.0080.00415.42
7.0.250.0030.01315.59
7.0.240.0040.00815.48
7.0.230.0060.00915.39
7.0.220.0000.00815.45
7.0.210.0030.01015.57
7.0.200.0050.00815.91
7.0.190.0000.01315.93
7.0.180.0040.00615.72
7.0.170.0070.00715.81
7.0.160.0020.01215.76
7.0.150.0080.00515.86
7.0.140.0030.01315.85
7.0.130.0020.01115.88
7.0.120.0060.00515.95
7.0.110.0080.00215.87
7.0.100.0050.00815.74
7.0.90.0050.00515.78
7.0.80.0020.00815.74
7.0.70.0060.00615.79
7.0.60.0060.00815.54
7.0.50.0070.00415.92
7.0.40.0050.00815.01
7.0.30.0040.00514.91
7.0.20.0020.01214.75
7.0.10.0070.00614.80
7.0.00.0080.00214.88
5.6.380.0120.00314.29

preferences:
62.87 ms | 1771 KiB | 5 Q