3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __destruct(){ echo "Destroying class ".__CLASS__; } } $array = new \SplFixedArray(6); $array[5] = new Test(); $array->setSize(5); // Destroying class Test

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.0120.00616.75
8.3.50.0100.01022.05
8.3.40.0140.00018.70
8.3.30.0110.00419.13
8.3.20.0070.00020.34
8.3.10.0000.00923.46
8.3.00.0050.00320.90
8.2.180.0170.00318.34
8.2.170.0000.01922.96
8.2.160.0100.00320.53
8.2.150.0070.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00826.16
8.2.120.0040.00420.57
8.2.110.0090.00022.26
8.2.100.0000.01117.78
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00418.03
8.2.50.0050.00518.07
8.2.40.0030.00619.94
8.2.30.0080.00018.14
8.2.20.0040.00417.54
8.2.10.0000.00717.99
8.2.00.0030.00517.53
8.1.280.0120.00625.92
8.1.270.0080.00023.83
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01121.77
8.1.230.0070.00421.04
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0000.00818.64
8.1.160.0000.00721.85
8.1.150.0050.00318.56
8.1.140.0000.00717.37
8.1.130.0000.00717.87
8.1.120.0030.00317.45
8.1.110.0100.00017.39
8.1.100.0030.00617.39
8.1.90.0040.00417.45
8.1.80.0040.00417.40
8.1.70.0000.00717.34
8.1.60.0100.00317.53
8.1.50.0000.00817.34
8.1.40.0000.00717.53
8.1.30.0000.00817.62
8.1.20.0050.00317.70
8.1.10.0030.00517.44
8.1.00.0030.00517.47
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0030.00318.34
8.0.270.0000.00717.19
8.0.260.0050.00517.19
8.0.250.0000.00716.86
8.0.240.0030.00516.77
8.0.230.0070.00016.78
8.0.220.0070.00016.78
8.0.210.0030.00516.71
8.0.200.0030.00316.93
8.0.190.0030.00616.96
8.0.180.0030.00316.89
8.0.170.0000.00716.91
8.0.160.0070.00016.86
8.0.150.0000.00716.76
8.0.140.0030.00316.76
8.0.130.0000.00613.34
8.0.120.0040.00416.77
8.0.110.0000.00816.78
8.0.100.0050.00216.82
8.0.90.0020.00516.60
8.0.80.0090.01216.83
8.0.70.0040.00416.67
8.0.60.0030.00516.93
8.0.50.0040.00416.83
8.0.30.0130.00817.16
8.0.20.0140.00517.40
8.0.10.0040.00416.95
8.0.00.0070.01016.72
7.4.330.0030.00215.00
7.4.320.0000.00616.33
7.4.300.0030.00316.45
7.4.290.0000.00716.61
7.4.280.0000.00716.35
7.4.270.0040.00416.43
7.4.260.0000.00816.46
7.4.250.0040.00416.47
7.4.240.0030.00316.55
7.4.230.0050.00216.43
7.4.220.0160.00916.54
7.4.210.0080.00716.58
7.4.200.0030.00316.57
7.4.190.0070.00016.46
7.4.160.0060.00916.44
7.4.150.0110.00817.40
7.4.140.0090.00817.86
7.4.130.0070.01016.40
7.4.120.0080.01016.46
7.4.110.0130.00316.53
7.4.100.0110.00616.26
7.4.90.0120.01216.39
7.4.80.0160.00819.39
7.4.70.0100.00716.41
7.4.60.0090.00916.23
7.4.50.0000.00816.36
7.4.40.0130.00316.46
7.4.30.0060.01016.69
7.4.00.0080.01015.00
7.3.330.0050.00013.28
7.3.320.0000.00513.21
7.3.310.0030.00316.09
7.3.300.0070.00016.26
7.3.290.0050.00916.28
7.3.280.0070.00916.31
7.3.270.0000.01717.40
7.3.260.0100.00716.36
7.3.250.0070.01016.30
7.3.240.0160.00016.54
7.3.230.0100.00716.39
7.3.210.0110.00816.30
7.3.200.0230.02119.39
7.3.190.0160.00616.48
7.3.180.0110.00416.41
7.3.170.0100.01016.27
7.3.160.0070.01016.31
7.3.120.0060.01214.79
7.3.110.0100.00714.73
7.3.100.0100.00614.84
7.3.90.0040.00914.66
7.3.80.0030.01114.86
7.3.70.0070.00314.76
7.3.60.0020.01214.79
7.3.50.0060.00614.50
7.3.40.0060.00614.49
7.3.30.0100.00314.75
7.3.20.0070.00716.56
7.3.10.0090.00516.49
7.3.00.0080.00716.36
7.2.330.0100.00716.63
7.2.320.0080.00816.54
7.2.310.0040.01216.80
7.2.300.0120.00916.54
7.2.290.0060.01516.52
7.2.250.0030.01414.81
7.2.240.0110.00815.07
7.2.230.0070.00815.07
7.2.220.0090.00715.02
7.2.210.0080.01014.88
7.2.200.0020.01314.82
7.2.190.0050.01114.85
7.2.180.0050.00914.97
7.2.170.0030.01114.95
7.2.130.0130.00816.62
7.2.120.0130.00715.96
7.2.110.0070.01015.98
7.2.100.0100.00716.39
7.2.90.0130.00716.54
7.2.80.0160.00215.89
7.2.70.0120.00916.38
7.2.60.0130.00316.05
7.2.50.0100.01316.52
7.2.40.0140.00615.77
7.2.30.0110.00716.58
7.2.20.0140.00716.34
7.2.10.0130.00316.30
7.2.00.0050.01217.96
7.1.330.0060.00815.48
7.1.320.0070.00315.67
7.1.310.0060.00815.68
7.1.300.0030.01015.52
7.1.290.0050.00915.63
7.1.280.0020.01215.69
7.1.270.0100.00315.61
7.1.260.0010.01215.77
7.1.250.0040.01114.99
7.1.200.0120.00015.43
7.1.100.0030.01317.66
7.1.70.0030.00617.15
7.1.60.0070.00719.46
7.1.50.0100.01016.82
7.1.00.0100.07022.36
7.0.200.0070.00316.71
7.0.140.0030.07321.97
7.0.60.0030.08319.78
7.0.50.0000.07717.95
7.0.40.0170.04020.21
7.0.30.0330.06720.06
7.0.20.0230.04020.19
7.0.10.0370.06720.09
7.0.00.0130.07720.05
5.6.280.0000.07320.83
5.6.210.0200.06720.73
5.6.200.0030.06318.28
5.6.190.0230.06720.46
5.6.180.3700.04320.52
5.6.170.0270.07020.53
5.6.160.0230.04320.71
5.6.150.0100.08018.20
5.6.140.0070.07718.12
5.6.130.0070.08718.10
5.6.120.0070.06020.96
5.6.110.0070.08720.99
5.6.100.0130.07721.13
5.6.90.0070.08321.10
5.6.80.0070.04720.41
5.6.70.0130.03320.50
5.5.350.0170.07720.30
5.5.340.0000.05717.95
5.5.330.0170.06320.27
5.5.320.0470.04720.19
5.5.310.0330.08020.36
5.5.300.0100.07317.98
5.5.290.0070.07717.94
5.5.280.0030.04320.95
5.5.270.0100.08320.84
5.5.260.0030.09320.84
5.5.250.0070.08720.63
5.5.240.0030.05720.16
5.4.450.0270.06319.70
5.4.440.0230.06019.63
5.4.430.0130.06019.49
5.4.420.0670.00019.63
5.4.410.0100.05319.06
5.4.400.0230.05318.73
5.4.390.0200.05718.59
5.4.380.0270.05718.84
5.4.370.0100.03718.71
5.4.360.0070.03718.76
5.4.350.0080.03512.02
5.4.340.0050.03712.02
5.4.320.0070.03512.50
5.4.310.0080.05012.50
5.4.300.0070.03912.50
5.4.290.0080.04312.50
5.4.280.0050.03912.39
5.4.270.0080.03612.39
5.4.260.0080.03812.39
5.4.250.0060.03812.39
5.4.240.0070.03712.39
5.4.230.0090.03612.38
5.4.220.0090.03712.39
5.4.210.0070.03712.39
5.4.200.0080.03912.38
5.4.190.0050.03712.38
5.4.180.0110.03212.38
5.4.170.0060.03812.39
5.4.160.0080.03812.39
5.4.150.0070.04512.39
5.4.140.0060.04312.07
5.4.130.0090.04412.06
5.4.120.0070.05212.02
5.4.110.0100.05112.01
5.4.100.0110.05312.01
5.4.90.0090.05412.02
5.4.80.0120.04712.02
5.4.70.0070.05012.00
5.4.60.0140.04812.00
5.4.50.0110.05312.00
5.4.40.0120.04812.00
5.4.30.0040.05411.99
5.4.20.0090.05611.99
5.4.10.0070.05211.99
5.4.00.0070.05011.48
5.3.290.0050.04012.80
5.3.280.0110.04812.71
5.3.270.0120.05512.72
5.3.260.0110.05212.71
5.3.250.0070.03812.72
5.3.240.0060.03912.72
5.3.230.0070.03912.71
5.3.220.0090.03712.68
5.3.210.0070.04012.68
5.3.200.0050.03712.68
5.3.190.0090.03912.68
5.3.180.0100.03212.67
5.3.170.0040.03912.67
5.3.160.0050.03712.68
5.3.150.0090.03512.67
5.3.140.0100.03512.66
5.3.130.0050.05812.66
5.3.120.0100.03812.66
5.3.110.0090.03912.66
5.3.100.0070.03812.13
5.3.90.0090.03512.11
5.3.80.0070.03712.11
5.3.70.0050.03912.10
5.3.60.0050.03812.09
5.3.50.0060.03912.03
5.3.40.0090.03512.04
5.3.30.0070.03411.99
5.3.20.0070.03511.77
5.3.10.0040.03711.74
5.3.00.0050.04011.73
5.2.170.0050.0339.22
5.2.160.0060.0309.22
5.2.150.0040.0369.21
5.2.140.0050.0329.21
5.2.130.0060.0309.18
5.2.120.0070.0289.17
5.2.110.0050.0309.19
5.2.100.0030.0329.18
5.2.90.0050.0309.18
5.2.80.0050.0309.17
5.2.70.0030.0319.18
5.2.60.0050.0309.13
5.2.50.0040.0319.10
5.2.40.0100.0239.07
5.2.30.0040.0319.05
5.2.20.0040.0309.03
5.2.10.0060.0288.94
5.2.00.0060.0428.81
5.1.60.0050.0358.09
5.1.50.0070.0338.09
5.1.40.0040.0268.07
5.1.30.0050.0278.41
5.1.20.0040.0288.44
5.1.10.0040.0278.17
5.1.00.0030.0288.17
5.0.50.0050.0206.64
5.0.40.0040.0196.50
5.0.30.0050.0316.31
5.0.20.0060.0176.27
5.0.10.0050.0236.25
5.0.00.0030.0316.25
4.4.90.0020.0164.77
4.4.80.0030.0164.76
4.4.70.0030.0174.75
4.4.60.0020.0174.75
4.4.50.0020.0174.77
4.4.40.0030.0264.71
4.4.30.0040.0164.76
4.4.20.0030.0174.85
4.4.10.0020.0174.85
4.4.00.0030.0254.76
4.3.110.0070.0184.66
4.3.100.0020.0234.66
4.3.90.0020.0164.63
4.3.80.0030.0324.58
4.3.70.0030.0164.63
4.3.60.0010.0174.63
4.3.50.0050.0144.63
4.3.40.0040.0234.54
4.3.30.0040.0163.30
4.3.20.0020.0173.28
4.3.10.0020.0163.23
4.3.00.0070.0176.60

preferences:
37.43 ms | 401 KiB | 5 Q