3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public $throw_exception = false; function __sleep() { } function __construct() { echo "construct called\n"; if ($this->throw_exception == true) { throw new Exception(); } else { $this->throw->exception=true; } } } $a = new foo; $x = serialize($a); $y = unserialize($a);

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.40.0030.01218.92
8.3.30.0070.00718.61
8.3.20.0040.00418.66
8.3.10.0090.00318.86
8.3.00.0030.00719.43
8.2.170.0140.00722.96
8.2.160.0150.00019.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.00
8.2.110.0030.00619.16
8.2.100.0080.00419.64
8.2.90.0050.00317.75
8.2.80.0070.00317.97
8.2.70.0090.00018.04
8.2.60.0070.00018.09
8.2.50.0040.00418.10
8.2.40.0040.00419.35
8.2.30.0050.00319.12
8.2.20.0000.01117.58
8.2.10.0070.00017.69
8.2.00.0030.00617.78
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0100.00022.52
8.1.230.0080.00322.08
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0090.00017.22
8.1.190.0060.00317.00
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0040.00418.80
8.1.150.0000.00718.89
8.1.140.0080.00017.51
8.1.130.0030.00617.36
8.1.120.0000.00817.51
8.1.110.0000.00717.39
8.1.100.0070.00017.37
8.1.90.0030.00317.53
8.1.80.0070.00017.52
8.1.70.0000.00617.29
8.1.60.0040.00417.57
8.1.50.0000.00817.42
8.1.40.0040.00417.42
8.1.30.0060.00317.50
8.1.20.0040.00417.62
8.1.10.0080.00017.47
8.1.00.0030.00617.55
8.0.300.0040.00418.77
8.0.290.0000.00916.75
8.0.280.0030.00318.45
8.0.270.0040.00417.31
8.0.260.0000.00716.75
8.0.250.0040.00416.93
8.0.240.0040.00416.91
8.0.230.0000.00717.07
8.0.220.0030.00316.94
8.0.210.0030.00317.02
8.0.200.0030.00316.90
8.0.190.0030.00516.88
8.0.180.0080.00516.88
8.0.170.0080.00016.79
8.0.160.0030.00316.99
8.0.150.0090.00016.82
8.0.140.0030.00716.79
8.0.130.0000.00613.34
8.0.120.0030.00516.97
8.0.110.0000.00716.82
8.0.100.0040.00416.99
8.0.90.0040.00416.99
8.0.80.0060.01016.86
8.0.70.0040.00416.95
8.0.60.0030.00616.90
8.0.50.0000.00716.92
8.0.30.0170.00317.29
8.0.20.0120.00917.18
8.0.10.0000.00817.02
8.0.00.0120.00716.83
7.4.330.0000.00513.06
7.4.320.0070.00016.40
7.4.300.0030.00316.54
7.4.290.0050.00516.36
7.4.280.0070.00016.63
7.4.270.0040.00416.49
7.4.260.0050.00013.26
7.4.250.0050.00316.50
7.4.240.0000.00716.39
7.4.230.0040.00416.62
7.4.220.0090.01116.65
7.4.210.0060.01016.46
7.4.200.0080.00016.47
7.4.190.0040.00316.75
7.4.160.0100.01016.62
7.4.150.0130.00616.55
7.4.140.0130.01317.86
7.4.130.0190.00016.68
7.4.120.0100.00616.51
7.4.110.0100.00716.53
7.4.100.0100.00716.73
7.4.90.0100.02416.58
7.4.80.0090.01519.39
7.4.70.0070.01016.29
7.4.60.0110.00716.45
7.4.50.0000.00916.63
7.4.40.0060.00916.47
7.4.30.0110.00516.48
7.4.10.0040.01515.05
7.4.00.0070.00915.07
7.3.330.0030.00313.13
7.3.320.0000.00613.31
7.3.310.0040.00416.39
7.3.300.0000.00816.32
7.3.290.0050.00916.36
7.3.280.0090.00916.37
7.3.270.0120.00416.52
7.3.260.0140.00316.41
7.3.240.0110.00616.50
7.3.230.0120.00916.45
7.3.210.0070.01016.35
7.3.200.0070.01016.26
7.3.190.0090.00616.27
7.3.180.0090.00616.43
7.3.170.0110.00616.44
7.3.160.0130.01016.55
7.3.130.0070.01114.64
7.3.120.0050.01114.74
7.3.110.0090.00614.95
7.3.100.0040.01114.80
7.3.90.0100.01014.88
7.3.80.0110.00714.97
7.3.70.0030.01014.80
7.3.60.0040.00814.84
7.3.50.0140.00314.90
7.3.40.0030.01414.86
7.3.30.0030.01314.80
7.3.20.0140.00016.61
7.3.10.0060.01016.70
7.3.00.0070.00716.71
7.2.330.0120.00716.89
7.2.320.0060.01216.80
7.2.310.0130.01016.68
7.2.300.0050.01116.67
7.2.290.0080.01216.77
7.2.260.0030.01615.02
7.2.250.0030.01314.63
7.2.240.0070.00715.25
7.2.230.0030.01715.15
7.2.220.0070.01015.10
7.2.210.0040.00414.83
7.2.200.0040.01115.21
7.2.190.0110.00415.16
7.2.180.0000.01615.02
7.2.170.0040.01415.13
7.2.160.0040.00815.19
7.2.150.0080.00416.74
7.2.140.0070.00717.08
7.2.130.0030.01316.92
7.2.120.0060.00317.00
7.2.110.0000.01116.71
7.2.100.0060.00917.07
7.2.90.0110.00316.71
7.2.80.0060.00917.00
7.2.70.0100.00617.01
7.2.60.0060.00817.01
7.2.50.0080.00417.01
7.2.40.0060.00917.02
7.2.30.0080.00416.60
7.2.20.0040.00916.78
7.2.10.0090.00616.90
7.2.00.0020.01218.19
7.1.330.0030.01215.77
7.1.320.0110.00415.72
7.1.310.0110.00015.54
7.1.300.0040.00815.86
7.1.290.0090.00615.56
7.1.280.0030.01415.86
7.1.270.0120.00315.80
7.1.260.0080.00415.44
7.1.250.0100.00715.74
7.1.240.0070.01015.87
7.1.230.0060.00915.55
7.1.220.0060.00315.73
7.1.210.0070.00715.97
7.1.200.0040.01115.86
7.1.190.0060.00615.84
7.1.180.0090.00315.71
7.1.170.0070.00715.87
7.1.160.0000.01215.93
7.1.150.0030.01015.71
7.1.140.0060.00315.73
7.1.130.0040.01115.88
7.1.120.0030.01015.74
7.1.110.0130.00015.61
7.1.100.0090.00915.99
7.1.90.0000.01815.89
7.1.80.0030.01415.75
7.1.70.0030.00716.48
7.1.60.0040.01517.38
7.1.50.0060.01216.33
7.1.40.0060.00615.73
7.1.30.0100.00615.47
7.1.20.0080.00415.80
7.1.10.0070.00715.86
7.1.00.0000.04319.11
7.0.330.0000.01415.22
7.0.320.0030.00915.23
7.0.310.0000.01215.04
7.0.300.0140.00015.39
7.0.290.0040.00715.18
7.0.280.0070.00715.56
7.0.270.0040.00415.53
7.0.260.0030.00515.49
7.0.250.0040.00815.64
7.0.240.0090.00615.50
7.0.230.0030.01015.35
7.0.220.0090.00915.55
7.0.210.0070.00415.43
7.0.200.0100.00316.02
7.0.190.0080.00015.59
7.0.180.0060.00915.39
7.0.170.0100.00315.60
7.0.160.0040.00815.61
7.0.150.0110.00415.12
7.0.140.0000.04618.81
7.0.130.0040.01115.27
7.0.120.0020.04218.74
7.0.110.0070.00315.51
7.0.100.0090.00315.41
7.0.90.0080.00515.44
7.0.80.0000.01115.25
7.0.70.0090.00615.25
7.0.60.0020.04117.70
7.0.50.0080.04216.67
7.0.40.0070.04316.82
7.0.30.0170.01816.76
7.0.20.0160.01916.94
7.0.10.0150.02016.80
7.0.00.0030.04516.77
5.6.400.0070.00714.44
5.6.390.0080.00714.49
5.6.380.0060.00914.48
5.6.370.0040.00414.55
5.6.360.0100.00314.63
5.6.350.0030.00814.66
5.6.340.0000.01314.53
5.6.330.0040.01114.60
5.6.320.0030.00714.68
5.6.310.0110.00414.34
5.6.300.0030.01114.64
5.6.290.0000.01014.43
5.6.280.0030.01014.30
5.6.270.0030.00614.24
5.6.260.0140.00314.38
5.6.250.0060.00914.78
5.6.240.0060.01214.48
5.6.230.0040.01114.44
5.6.220.0040.00814.62
5.6.210.0020.04817.57
5.6.200.0050.02216.19
5.6.190.0080.04517.44
5.6.180.0220.03617.33
5.6.170.0100.02517.51
5.6.160.0120.04217.55
5.6.150.0060.04216.26
5.6.140.0070.03816.18
5.6.130.0020.02916.26
5.6.120.0030.02817.65
5.6.110.0020.03317.62
5.6.100.0050.02017.67
5.6.90.0050.03517.73
5.6.80.0050.02617.40
5.6.70.0180.04517.35
5.6.60.0110.00014.15
5.6.50.0070.00714.44
5.6.40.0080.00814.38
5.6.30.0090.00014.42
5.6.20.0090.00614.00
5.6.10.0030.00914.04
5.6.00.0000.01014.13
5.5.380.0060.01214.29
5.5.370.0040.01114.49
5.5.360.0000.01214.67
5.5.350.0090.04017.40
5.5.340.0020.03416.14
5.5.330.0100.02717.45
5.5.320.0020.04417.30
5.5.310.0180.04317.19
5.5.300.0130.03816.15
5.5.290.0030.04316.06
5.5.280.0090.04617.71
5.5.270.0070.04717.30
5.5.260.0050.03917.55
5.5.250.0050.04617.47
5.5.240.0080.04417.32
5.5.230.0060.00914.37
5.5.220.0090.00014.22
5.5.210.0000.01314.33
5.5.200.0040.00714.36
5.5.190.0040.00814.38
5.5.180.0110.00414.32
5.5.170.0040.00414.34
5.5.160.0030.00914.05
5.5.150.0100.00214.23
5.5.140.0030.01014.33
5.5.130.0090.00614.14
5.5.120.0040.01113.92
5.5.110.0060.00614.40
5.5.100.0000.01414.24
5.5.90.0060.00613.89
5.5.80.0080.00413.76
5.5.70.0000.01414.06
5.5.60.0030.01014.05
5.5.50.0050.00514.07
5.5.40.0070.00714.23
5.5.30.0030.01014.18
5.5.20.0000.00814.28
5.5.10.0050.00513.99
5.5.00.0100.00714.25
5.4.450.0440.01715.55
5.4.440.0340.02515.54
5.4.430.0230.02015.67
5.4.420.0360.02315.62
5.4.410.0480.02115.37
5.4.400.0310.02315.35
5.4.390.0350.02015.34
5.4.380.0370.02515.51
5.4.370.0320.02515.39
5.4.360.0190.02515.34
5.4.350.0230.02315.46
5.4.340.0450.02215.46
5.4.330.0000.00611.71
5.4.320.0330.02715.46
5.4.310.0320.02215.44
5.4.300.0380.02615.33
5.4.290.0240.01815.51
5.4.280.0140.02515.35
5.4.270.0450.02315.37
5.4.260.0180.02015.28
5.4.250.0350.02315.46
5.4.240.0270.02315.42
5.4.230.0270.02215.43
5.4.220.0370.03015.35
5.4.210.0180.02615.28
5.4.200.0280.02515.32
5.4.190.0320.02815.32
5.4.180.0390.02015.28
5.4.170.0180.02315.46
5.4.160.0350.02215.46
5.4.150.0250.02415.41
5.4.140.0260.02314.08
5.4.130.0350.02714.05
5.4.120.0170.02414.04
5.4.110.0320.02714.03
5.4.100.0130.02513.97
5.4.90.0270.02114.12
5.4.80.0550.01514.07
5.4.70.0370.01814.06
5.4.60.0320.01814.01
5.4.50.0380.01814.10
5.4.40.0130.02014.00
5.4.30.0330.01714.13
5.4.20.0320.02914.13
5.4.10.0280.02314.02
5.4.00.0320.02213.75
5.3.290.0360.02913.61
5.3.280.0240.01713.61
5.3.270.0150.02413.61
5.3.260.0130.02913.61
5.3.250.0300.01913.61
5.3.240.0100.01913.61
5.3.230.0250.02413.61
5.3.220.0470.02613.61
5.3.210.0230.02713.61
5.3.200.0180.02513.61
5.3.190.0480.01813.61
5.3.180.0170.02513.61
5.3.170.0400.01313.61
5.3.160.0280.02313.61
5.3.150.0230.02813.61
5.3.140.0180.02613.61
5.3.130.0300.02813.61
5.3.120.0480.02113.61
5.3.110.0320.02013.61
5.3.100.0440.01913.61
5.3.90.0200.02813.59
5.3.80.0500.02513.61
5.3.70.0300.03213.61
5.3.60.0460.01813.61
5.3.50.0220.02013.61
5.3.40.0170.02313.61
5.3.30.0470.02713.61
5.3.20.0210.02513.61
5.3.10.0330.02313.61
5.3.00.0180.02413.61
5.2.170.0370.03715.51
5.2.160.0430.04015.51
5.2.150.0330.04315.51
5.2.140.0400.05015.51
5.2.130.0330.06715.51
5.2.120.0330.03715.51
5.2.110.0670.02315.51
5.2.100.0170.03715.51
5.2.90.0830.02715.51
5.2.80.0300.03015.51
5.2.70.0300.03715.51
5.2.60.0370.03315.51
5.2.50.0100.02715.51
5.2.40.0430.02315.51
5.2.30.0470.01715.51
5.2.20.0370.02715.51
5.2.10.0430.02715.51
5.2.00.0470.02715.51
5.1.60.0470.03315.51
5.1.50.0270.03015.51
5.1.40.0630.02315.50
5.1.30.0230.02315.50
5.1.20.0700.03315.50
5.1.10.0170.03715.50
5.1.00.0470.03015.50
5.0.50.0270.01715.50
5.0.40.0270.02315.50
5.0.30.0300.02315.50
5.0.20.0300.01715.50
5.0.10.0070.02015.50
5.0.00.0070.03315.50
4.4.90.0270.01715.51
4.4.80.0330.01315.51
4.4.70.0170.02015.51
4.4.60.0000.01715.51
4.4.50.0230.01715.51
4.4.40.0330.03015.51
4.4.30.0230.01315.50
4.4.20.0230.02015.50
4.4.10.0200.01715.50
4.4.00.0270.02015.50
4.3.110.0270.01315.50
4.3.100.0100.01315.50
4.3.90.0270.01715.50
4.3.80.0300.02015.50
4.3.70.0200.01315.50
4.3.60.0200.01315.50
4.3.50.0230.01715.36
4.3.40.0230.03015.36
4.3.30.0200.01015.36
4.3.20.0270.01315.36
4.3.10.0070.01315.36
4.3.00.0130.01315.36

preferences:
45.32 ms | 400 KiB | 5 Q