3v4l.org

run code in 300+ PHP versions simultaneously
<?php $user = new stdClass(); $user->id = 1; $user->name = 'johndoe'; $foobar = array('foo' => 'bar', 'user' => $user); echo serialize($foobar);

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.0140.00318.30
8.3.50.0120.00521.08
8.3.40.0110.00418.84
8.3.30.0110.00320.21
8.3.20.0000.00820.52
8.3.10.0080.00021.17
8.3.00.0040.00423.66
8.2.180.0110.00718.41
8.2.170.0130.00722.96
8.2.160.0160.00020.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0080.00021.03
8.2.110.0040.00419.41
8.2.100.0000.01217.84
8.2.90.0060.00319.22
8.2.80.0040.00417.97
8.2.70.0050.00317.48
8.2.60.0060.00318.05
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00819.55
8.2.20.0000.00817.72
8.2.10.0000.00717.71
8.2.00.0040.00417.67
8.1.280.0070.01425.92
8.1.270.0080.00023.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0080.00320.65
8.1.230.0040.00821.03
8.1.220.0000.00918.77
8.1.210.0000.00918.89
8.1.200.0060.00617.35
8.1.190.0040.00417.52
8.1.180.0050.00318.10
8.1.170.0060.00318.41
8.1.160.0050.00318.75
8.1.150.0040.00418.63
8.1.140.0050.00217.29
8.1.130.0000.00717.83
8.1.120.0030.00317.41
8.1.110.0000.00817.45
8.1.100.0000.00817.38
8.1.90.0050.00317.40
8.1.80.0000.00817.36
8.1.70.0030.00517.32
8.1.60.0040.00417.41
8.1.50.0000.00717.36
8.1.40.0040.00417.46
8.1.30.0040.00417.64
8.1.20.0080.00017.50
8.1.10.0000.00717.47
8.1.00.0000.00817.45
8.0.300.0000.00819.75
8.0.290.0050.00317.05
8.0.280.0000.00718.43
8.0.270.0000.00717.26
8.0.260.0020.00516.73
8.0.250.0040.00417.02
8.0.240.0040.00416.93
8.0.230.0070.00016.78
8.0.220.0030.00316.73
8.0.210.0070.00016.85
8.0.200.0030.00316.85
8.0.190.0040.00416.77
8.0.180.0030.00516.81
8.0.170.0040.00416.90
8.0.160.0040.00416.78
8.0.150.0070.00016.84
8.0.140.0070.00016.78
8.0.130.0050.00013.20
8.0.120.0040.00416.78
8.0.110.0040.00416.93
8.0.100.0050.00216.83
8.0.90.0030.00516.86
8.0.80.0070.01016.84
8.0.70.0050.00216.79
8.0.60.0070.00016.87
8.0.50.0040.00416.63
8.0.30.0140.00517.12
8.0.20.0090.01017.40
8.0.10.0000.00816.85
8.0.00.0140.00416.59
7.4.330.0060.00016.80
7.4.320.0000.00616.55
7.4.300.0060.00016.39
7.4.290.0000.00716.53
7.4.280.0070.00016.44
7.4.270.0000.00716.51
7.4.260.0000.00513.14
7.4.250.0050.00216.39
7.4.240.0070.00016.59
7.4.230.0070.00016.34
7.4.220.0130.00616.44
7.4.210.0070.00716.52
7.4.200.0050.00216.59
7.4.190.0000.00716.50
7.4.160.0120.00916.40
7.4.150.0000.01617.40
7.4.140.0080.01017.86
7.4.130.0100.00816.49
7.4.120.0130.00716.39
7.4.110.0080.00816.46
7.4.100.0130.00316.38
7.4.90.0090.00916.31
7.4.80.0090.00619.39
7.4.70.0170.00016.50
7.4.60.0140.00316.36
7.4.50.0070.00016.64
7.4.40.0070.01122.77
7.4.30.0030.01316.20
7.4.00.0180.00015.21
7.3.330.0020.00213.21
7.3.320.0000.00513.11
7.3.310.0030.00316.24
7.3.300.0030.00316.29
7.3.290.0130.00316.30
7.3.280.0130.00716.21
7.3.270.0120.00817.40
7.3.260.0120.00718.24
7.3.250.0100.00716.39
7.3.240.0070.01416.55
7.3.230.0090.01216.39
7.3.210.0030.01316.52
7.3.200.0110.00819.39
7.3.190.0110.01116.29
7.3.180.0030.01216.57
7.3.170.0050.01416.32
7.3.160.0060.01216.66
7.3.120.0030.01414.57
7.2.330.0130.00316.68
7.2.320.0030.01716.67
7.2.310.0060.01316.66
7.2.300.0070.01016.63
7.2.290.0090.00916.44
7.2.00.0080.00619.25
7.1.100.0000.01418.02
7.1.70.0040.00417.22
7.1.60.0040.02119.17
7.1.50.0150.00616.73
7.1.00.0030.03322.31
7.0.200.0000.00716.54
7.0.140.0070.07022.15
7.0.100.0170.04719.95
7.0.90.0130.03319.91
7.0.80.0270.05019.93
7.0.70.0100.03319.89
7.0.60.0000.05319.92
7.0.50.0100.08720.20
7.0.40.0100.05320.23
7.0.30.0100.07720.07
7.0.20.0000.08320.09
7.0.10.0030.08020.03
7.0.00.0100.06320.06
5.6.280.0030.07021.06
5.6.250.0000.04320.72
5.6.240.0070.04020.66
5.6.230.0030.04320.62
5.6.220.0000.05320.73
5.6.210.0030.04020.76
5.6.200.0100.06721.08
5.6.190.0100.08021.16
5.6.180.0070.07321.10
5.6.170.0130.07721.10
5.6.160.0070.09021.17
5.6.150.0030.08021.01
5.6.140.0070.08721.00
5.6.130.0130.08320.94
5.6.120.0170.06021.00
5.6.110.0130.07721.07
5.6.100.0130.07321.06
5.6.90.0100.07321.06
5.6.80.0000.04320.46
5.6.70.0200.07720.36
5.6.60.0030.04720.53
5.6.50.0000.08320.46
5.6.40.0100.07020.41
5.6.30.0170.07320.39
5.6.20.0070.06320.43
5.6.10.0130.07720.30
5.6.00.0000.04720.48
5.5.380.0030.04320.41
5.5.370.0030.04020.36
5.5.360.0100.03720.55
5.5.350.0000.04720.47
5.5.340.0170.06720.80
5.5.330.0100.08020.80
5.5.320.0200.07020.93
5.5.310.0070.05020.83
5.5.300.0170.07020.80
5.5.290.0130.07720.80
5.5.280.0170.06320.63
5.5.270.0070.08320.90
5.5.260.0070.08020.81
5.5.250.0100.08020.61
5.5.240.0030.05020.28
5.5.230.0070.07320.16
5.5.220.0100.07720.24
5.5.210.0030.08720.29
5.5.200.0100.07720.12
5.5.190.0170.06020.17
5.5.180.0170.06320.14
5.5.160.0000.06020.12
5.5.150.0000.08020.07
5.5.140.0130.04020.18
5.5.130.0100.07720.23
5.5.120.0100.03720.21
5.5.110.0070.08020.20
5.5.100.0130.07320.04
5.5.90.0030.06720.09
5.5.80.0170.03320.14
5.5.70.0030.08320.06
5.5.60.0030.08320.09
5.5.50.0070.08320.08
5.5.40.0030.04019.95
5.5.30.0100.08020.02
5.5.20.0070.07720.14
5.5.10.0130.07320.04
5.5.00.0070.07720.04
5.4.450.0100.04319.41
5.4.440.0030.05019.27
5.4.430.0030.08319.40
5.4.420.0100.07319.46
5.4.410.0170.07718.98
5.4.400.0030.07719.04
5.4.390.0130.04719.14
5.4.380.0000.06019.05
5.4.370.0070.08019.14
5.4.360.0130.07019.00
5.4.350.0100.08019.03
5.4.340.0070.07318.79
5.4.320.0070.03718.82
5.4.310.0070.08019.12
5.4.300.0130.07018.78
5.4.290.0130.08319.06
5.4.280.0070.05319.07
5.4.270.0070.06719.05
5.4.260.0130.07319.02
5.4.250.0100.07719.09
5.4.240.0000.04718.89
5.4.230.0100.04018.97
5.4.220.0170.06719.07
5.4.210.0100.04719.12
5.4.200.0070.03719.04
5.4.190.0000.07018.97
5.4.180.0030.04718.93
5.4.170.0070.08018.93
5.4.160.0100.06719.12
5.4.150.0130.07719.05
5.4.140.0070.07716.27
5.4.130.0070.06716.35
5.4.120.0030.04016.36
5.4.110.0100.07016.30
5.4.100.0030.07316.36
5.4.90.0030.06316.45
5.4.80.0030.07716.29
5.4.70.0000.08016.31
5.4.60.0070.07316.42
5.4.50.0030.07316.31
5.4.40.0100.07316.23
5.4.30.0130.06316.18
5.4.20.0030.07716.37
5.4.10.0070.05316.22
5.4.00.0100.06715.73
5.3.290.0030.08314.57
5.3.280.0030.08314.58
5.3.270.0070.07014.59
5.3.260.0070.04314.60
5.3.250.0070.06314.59
5.3.240.0100.08014.54
5.3.230.0100.03714.58
5.3.220.0070.04714.55
5.3.210.0100.06714.55
5.3.200.0030.07714.53
5.3.190.0030.05014.56
5.3.180.0100.07314.54
5.3.170.0030.07014.55
5.3.160.0100.07714.41
5.3.150.0030.06714.51
5.3.140.0030.05014.54
5.3.130.0100.06714.53
5.3.120.0070.05014.53
5.3.110.0070.08314.48
5.3.100.0100.06714.02
5.3.90.0070.06713.98
5.3.80.0070.03313.95
5.3.70.0030.07713.97
5.3.60.0070.07013.85
5.3.50.0030.07013.93
5.3.40.0130.07013.91
5.3.30.0070.07313.84
5.3.20.0100.07313.54
5.3.10.0100.06713.66
5.3.00.0030.04713.59
5.2.170.0030.06712.20
5.2.160.0100.05012.20
5.2.150.0000.07012.20
5.2.140.0000.07012.20
5.2.130.0000.06312.20
5.2.120.0070.06312.20
5.2.110.0130.04312.20
5.2.100.0070.06312.20
5.2.90.0000.06712.20
5.2.80.0030.06712.20
5.2.70.0030.05012.20
5.2.60.0030.06712.20
5.2.50.0130.03312.20
5.2.40.0000.03312.20
5.2.30.0030.03712.20
5.2.20.0130.04712.20
5.2.10.0130.05312.20
5.2.00.0030.05712.20
5.1.60.0070.05312.20
5.1.50.0030.05312.20
5.1.40.0030.03012.20
5.1.30.0000.06012.20
5.1.20.0100.05312.20
5.1.10.0000.06312.20
5.1.00.0030.05712.20
5.0.50.0030.04712.20
5.0.40.0030.04712.20
5.0.30.0030.03012.20
5.0.20.0030.04312.20
5.0.10.0100.02312.20
5.0.00.0000.05712.20
4.4.90.0100.03312.20
4.4.80.0030.03312.20
4.4.70.0070.02712.20
4.4.60.0030.03712.20
4.4.50.0030.03312.20
4.4.40.0100.04712.20
4.4.30.0000.03012.20
4.4.20.0000.04012.20
4.4.10.0100.02712.20
4.4.00.0030.04712.20
4.3.110.0000.02312.20
4.3.100.0030.03012.20
4.3.90.0130.02012.20
4.3.80.0030.05312.20
4.3.70.0100.02712.20
4.3.60.0130.02012.20
4.3.50.0000.03712.20
4.3.40.0000.03012.20
4.3.30.0070.03312.20
4.3.20.0000.04012.20
4.3.10.0000.03712.20
4.3.00.0030.03312.20

preferences:
51.55 ms | 401 KiB | 5 Q