3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = new \stdClass(); $d->foo = 'bar'; $d->a = array(array($d, 'blah')); print serialize($d);

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.70.0080.00818.18
8.3.60.0090.00618.55
8.3.50.0070.01122.09
8.3.40.0100.00618.66
8.3.30.0030.01019.10
8.3.20.0030.00620.25
8.3.10.0080.00021.60
8.3.00.0050.00219.06
8.2.190.0040.01116.63
8.2.180.0160.00018.16
8.2.170.0120.00322.96
8.2.160.0060.01020.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.00
8.2.110.0040.00720.53
8.2.100.0070.00417.84
8.2.90.0050.00319.30
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0060.00318.04
8.2.50.0000.00818.10
8.2.40.0000.00817.97
8.2.30.0050.00318.15
8.2.20.0040.00417.74
8.2.10.0060.00317.92
8.2.00.0080.00017.71
8.1.280.0110.00925.92
8.1.270.0030.00618.85
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00921.03
8.1.230.0070.00420.29
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00818.55
8.1.160.0090.00021.92
8.1.150.0070.00018.81
8.1.140.0000.00717.38
8.1.130.0000.00717.82
8.1.120.0070.00017.49
8.1.110.0000.00817.50
8.1.100.0000.00717.52
8.1.90.0030.00317.34
8.1.80.0040.00417.50
8.1.70.0000.00717.37
8.1.60.0000.00817.46
8.1.50.0000.00917.48
8.1.40.0000.00817.52
8.1.30.0000.00817.48
8.1.20.0040.00417.47
8.1.10.0080.00017.46
8.1.00.0050.00317.48
8.0.300.0000.00818.77
8.0.290.0060.00316.63
8.0.280.0000.00718.48
8.0.270.0060.00318.56
8.0.260.0000.00617.16
8.0.250.0030.00316.95
8.0.240.0070.00016.97
8.0.230.0070.00016.90
8.0.220.0090.00016.88
8.0.210.0000.00716.77
8.0.200.0000.00716.94
8.0.190.0040.00717.04
8.0.180.0070.00016.80
8.0.170.0070.00016.91
8.0.160.0070.00016.93
8.0.150.0000.00716.84
8.0.140.0040.00316.84
8.0.130.0000.00613.32
8.0.120.0070.00016.87
8.0.110.0040.00316.79
8.0.100.0040.00416.87
8.0.90.0000.00716.93
8.0.80.0060.01016.93
8.0.70.0000.00816.67
8.0.60.0000.00716.80
8.0.50.0030.00516.73
8.0.30.0120.00616.91
8.0.20.0060.01317.40
8.0.10.0000.00717.00
8.0.00.0070.01116.69
7.4.330.0000.00515.14
7.4.320.0000.00616.52
7.4.300.0030.00316.45
7.4.290.0050.00216.43
7.4.280.0030.00516.59
7.4.270.0030.00316.62
7.4.260.0000.00816.53
7.4.250.0040.00416.45
7.4.240.0050.00216.60
7.4.230.0000.00716.43
7.4.220.0200.00916.49
7.4.210.0030.01716.53
7.4.200.0030.00316.69
7.4.160.0140.00316.47
7.4.150.0110.00817.40
7.4.140.0110.00617.86
7.4.130.0070.01016.62
7.4.120.0110.00516.54
7.4.110.0100.01316.36
7.4.100.0060.01016.45
7.4.90.0030.01316.44
7.4.80.0150.00319.39
7.4.70.0090.00616.38
7.4.60.0090.00616.57
7.4.50.0030.00616.58
7.4.40.0060.01116.61
7.4.30.0030.01316.40
7.4.00.0040.00814.70
7.3.330.0060.00013.10
7.3.320.0000.00513.02
7.3.310.0000.00716.24
7.3.300.0060.00016.26
7.3.290.0080.00816.25
7.3.280.0080.00716.25
7.3.270.0100.00717.40
7.3.260.0100.01016.41
7.3.250.0070.00916.36
7.3.240.0100.01016.52
7.3.230.0060.01016.56
7.3.210.0040.01216.26
7.3.200.0120.00619.39
7.3.190.0100.01016.40
7.3.180.0080.00816.34
7.3.170.0040.01216.39
7.3.160.0090.00616.23
7.3.10.0040.00416.80
7.3.00.0060.00616.38
7.2.330.0120.00616.59
7.2.320.0030.01316.45
7.2.310.0100.00616.78
7.2.300.0080.00816.73
7.2.290.0120.00916.59
7.2.130.0070.00716.97
7.2.120.0030.00916.68
7.2.110.0040.00416.80
7.2.100.0000.01216.88
7.2.90.0070.00716.70
7.2.80.0040.00717.08
7.2.70.0030.00616.94
7.2.60.0100.00316.98
7.2.50.0040.00717.18
7.2.40.0040.00716.67
7.2.30.0060.00617.11
7.2.20.0060.00617.15
7.2.10.0030.00716.63
7.2.00.0090.00718.21
7.1.250.0000.00915.82
7.1.200.0090.00315.45
7.1.100.0100.00018.17
7.1.70.0000.00716.99
7.1.60.0110.01519.57
7.1.50.0000.01216.89
7.1.00.0100.07022.45
7.0.200.0030.00616.84
7.0.140.0030.07722.00
7.0.60.0170.07320.03
7.0.50.0000.05017.85
7.0.40.0170.08020.10
7.0.30.0170.04320.17
7.0.20.0270.07020.13
7.0.10.0100.08320.03
7.0.00.0000.04720.16
5.6.280.0100.06721.07
5.6.210.0070.08320.54
5.6.200.0200.07318.12
5.6.190.0070.04020.62
5.6.180.0270.08020.48
5.6.170.0300.07720.41
5.6.160.0100.08320.37
5.6.150.0030.05318.17
5.6.140.0070.07718.11
5.6.130.0070.07718.18
5.6.120.0130.06320.99
5.6.110.0100.07320.99
5.6.100.0170.07320.96
5.6.90.0070.04320.93
5.6.80.0070.08020.36
5.6.70.0100.07720.47
5.5.350.0270.08320.52
5.5.340.0130.03317.97
5.5.330.0000.09320.13
5.5.320.0330.07020.21
5.5.310.0230.07720.25
5.5.300.0030.08718.00
5.5.290.0100.06017.98
5.5.280.0100.07720.84
5.5.270.0100.08720.75
5.5.260.0030.07720.95
5.5.250.0100.07720.46
5.5.240.0230.05720.03
5.4.450.0200.05719.49
5.4.440.0770.05719.52
5.4.430.0070.06019.42
5.4.420.0130.06719.50
5.4.410.0130.06719.34
5.4.400.0070.05719.19
5.4.390.0000.06019.05
5.4.380.0170.06018.70
5.4.370.0200.05718.64
5.4.360.0170.07718.57
5.4.350.0330.06318.70
5.4.340.0170.05318.70
5.4.320.0230.07718.69
5.4.310.0230.07318.69
5.4.300.0130.08018.48
5.4.290.0400.06318.64
5.4.280.0200.05318.71
5.4.270.0200.05318.64
5.4.260.0230.07018.64
5.4.250.0230.05718.55
5.4.240.0230.06018.69
5.4.230.0270.05318.70
5.4.220.0300.05018.67
5.4.210.0330.04318.44
5.4.200.0230.05016.62
5.4.190.0370.04018.73
5.4.180.0330.05018.59
5.4.170.0170.06018.44
5.4.160.0300.05718.44
5.4.150.0230.05718.67
5.4.140.0230.05016.27
5.4.130.0230.04316.20
5.4.120.0300.04016.18
5.4.110.0070.06016.24
5.4.100.0270.04716.03
5.4.90.0300.04316.23
5.4.80.0170.05316.27
5.4.70.0270.04316.14
5.4.60.0200.04716.21
5.4.50.0330.03316.30
5.4.40.0170.05316.25
5.4.30.0130.05716.05
5.4.20.0170.05316.21
5.4.10.0330.03316.05
5.4.00.0230.04715.48
5.3.290.0200.05314.80
5.3.280.0200.05014.65
5.3.270.0200.05314.58
5.3.260.0130.06014.67
5.3.250.0230.05314.52
5.3.240.0130.06014.57
5.3.230.0400.03714.66
5.3.220.0270.04714.70
5.3.210.0330.06314.63
5.3.200.0300.04714.49
5.3.190.0200.07014.54
5.3.180.0270.06314.51
5.3.170.0100.06014.48
5.3.160.0230.06714.46
5.3.150.0070.06314.61
5.3.140.0100.06714.62
5.3.130.0170.05714.68
5.3.120.0200.05714.52
5.3.110.0300.07014.45
5.3.100.0370.05713.95
5.3.90.0170.05714.02
5.3.80.0330.06013.96
5.3.70.0200.06714.04
5.3.60.0300.04013.97
5.3.50.0200.05013.94
5.3.40.0300.04013.93
5.3.30.0170.05013.92
5.3.20.0170.05713.68
5.3.10.0370.04013.63
5.3.00.0230.05713.53
5.2.170.0170.04311.11
5.2.160.0230.04311.27
5.2.150.0200.03711.12
5.2.140.0170.04711.20
5.2.130.0130.04011.12
5.2.120.0230.03311.12
5.2.110.0100.04711.06
5.2.100.0070.04711.06
5.2.90.0100.05011.16
5.2.80.0170.05711.10
5.2.70.0230.05011.06
5.2.60.0300.04711.00
5.2.50.0200.04010.99
5.2.40.0200.03711.04
5.2.30.0200.03710.91
5.2.20.0230.04010.91
5.2.10.0170.03710.92
5.2.00.0130.04310.84
5.1.60.0130.05010.04
5.1.50.0070.04010.10
5.1.40.0200.0409.96
5.1.30.0170.04310.35
5.1.20.0170.05010.43
5.1.10.0130.03710.09
5.1.00.0100.05710.10
5.0.50.0100.0308.59
5.0.40.0030.0378.50
5.0.30.0100.0438.29
5.0.20.0100.0408.27
5.0.10.0030.0338.17
5.0.00.0030.0478.20
4.4.90.0070.0275.88
4.4.80.0070.0335.90
4.4.70.0130.0235.90
4.4.60.0100.0235.88
4.4.50.0070.0335.86
4.4.40.0070.0375.89
4.4.30.0030.0275.91
4.4.20.0200.0105.93
4.4.10.0100.0205.99
4.4.00.0130.0305.94
4.3.110.0100.0205.75
4.3.100.0070.0235.85
4.3.90.0130.0175.81
4.3.80.0130.0305.77
4.3.70.0070.0275.82
4.3.60.0100.0235.82
4.3.50.0100.0205.82
4.3.40.0070.0375.84
4.3.30.0030.0234.55
4.3.20.0070.0204.54
4.3.10.0170.0304.60
4.3.00.0000.0277.21

preferences:
32.3 ms | 401 KiB | 5 Q