3v4l.org

run code in 300+ PHP versions simultaneously
<?php // classa.inc: class A { public $one = 1; public function show_one() { echo $this->one; } } // page1. $a = new A; $s = serialize($a); // store $s somewhere where page2.php can find it. file_put_contents('store', $s); // page2.php: // this is needed for the unserialize to work properly. $s = file_get_contents('store'); $a = unserialize($s); // now use the function show_one() of the $a object. $a->show_one(); ?>

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.00418.55
8.3.50.0090.00521.91
8.3.40.0060.01218.76
8.3.30.0070.00718.84
8.3.20.0040.00418.83
8.3.10.0040.00420.57
8.3.00.0080.00019.38
8.2.180.0110.00316.75
8.2.170.0140.00022.96
8.2.160.0120.00322.02
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.64
8.2.110.0070.00321.08
8.2.100.0110.00017.91
8.2.90.0080.00018.99
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0080.00019.77
8.2.20.0070.00017.69
8.2.10.0070.00017.74
8.2.00.0050.00217.70
8.1.280.0140.00325.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00720.48
8.1.230.0000.01121.02
8.1.220.0030.00518.77
8.1.210.0090.00018.79
8.1.200.0060.00317.13
8.1.190.0030.00617.53
8.1.180.0000.00718.10
8.1.170.0050.00318.70
8.1.160.0060.00318.83
8.1.150.0000.00818.59
8.1.140.0000.00717.32
8.1.130.0000.00717.91
8.1.120.0000.00717.50
8.1.110.0070.00017.47
8.1.100.0040.00417.43
8.1.90.0040.00417.37
8.1.80.0050.00317.33
8.1.70.0000.00717.37
8.1.60.0040.00417.46
8.1.50.0000.00717.37
8.1.40.0050.00317.40
8.1.30.0020.00517.67
8.1.20.0040.00417.66
8.1.10.0040.00417.56
8.1.00.0040.00417.59
8.0.300.0040.00419.93
8.0.290.0000.00816.75
8.0.280.0070.00018.36
8.0.270.0000.00717.18
8.0.260.0030.00316.81
8.0.250.0040.00417.06
8.0.240.0000.00717.00
8.0.230.0030.00317.05
8.0.220.0030.00316.97
8.0.210.0050.00316.86
8.0.200.0000.00616.99
8.0.190.0070.00016.99
8.0.180.0070.00017.00
8.0.170.0000.00917.00
8.0.160.0000.00717.02
8.0.150.0060.00316.86
8.0.140.0000.00816.89
8.0.130.0040.00413.41
8.0.120.0000.00816.97
8.0.110.0030.00516.89
8.0.100.0030.00616.84
8.0.90.0000.00716.88
8.0.80.0030.01416.95
8.0.70.0080.00017.03
8.0.60.0040.00416.86
8.0.50.0050.00317.02
8.0.30.0070.01117.29
8.0.20.0140.00517.40
8.0.10.0000.00717.10
8.0.00.0050.01316.68
7.4.330.0050.00014.65
7.4.320.0000.00616.36
7.4.300.0030.00316.63
7.4.290.0060.00016.51
7.4.280.0060.00316.42
7.4.270.0070.00016.55
7.4.260.0000.00513.29
7.4.250.0060.00316.48
7.4.240.0030.00616.63
7.4.230.0030.00516.59
7.4.220.0040.01516.49
7.4.210.0080.01016.62
7.4.200.0000.00716.52
7.4.190.0000.00716.58
7.4.160.0170.00716.58
7.4.150.0100.00717.40
7.4.140.0120.01617.86
7.4.130.0090.00916.53
7.4.120.0120.00616.63
7.4.110.0160.00016.40
7.4.100.0120.00616.54
7.4.90.0100.00716.40
7.4.80.0130.00519.04
7.4.70.0070.01016.51
7.4.60.0160.00316.57
7.4.50.0000.00516.55
7.4.40.0040.01522.27
7.4.30.0060.01516.61
7.4.10.0090.01114.92
7.4.00.0070.00814.90
7.3.330.0000.00513.23
7.3.320.0070.00013.33
7.3.310.0000.00716.48
7.3.300.0030.00316.24
7.3.290.0060.00816.31
7.3.280.0090.00716.36
7.3.270.0150.00417.40
7.3.260.0100.01018.24
7.3.250.0150.00816.57
7.3.240.0060.01216.35
7.3.230.0100.00716.62
7.3.210.0160.00616.36
7.3.200.0150.00319.39
7.3.190.0170.00616.66
7.3.180.0090.00916.27
7.3.170.0060.01116.27
7.3.160.0140.00716.53
7.3.130.0050.01214.78
7.3.120.0090.00714.82
7.3.110.0070.01014.71
7.3.100.0030.01114.79
7.3.90.0050.00814.87
7.3.80.0050.00814.91
7.3.70.0030.00914.78
7.3.60.0070.00714.88
7.3.50.0060.00514.78
7.3.40.0080.00514.77
7.3.30.0050.00714.72
7.3.20.0060.00816.51
7.3.10.0080.00616.61
7.3.00.0070.00816.58
7.2.330.0090.00916.39
7.2.320.0090.00916.38
7.2.310.0080.01516.58
7.2.300.0060.01116.39
7.2.290.0060.01016.53
7.2.260.0070.01114.79
7.2.250.0070.01115.06
7.2.240.0100.00714.89
7.2.230.0070.00914.97
7.2.220.0050.00914.92
7.2.210.0030.01014.89
7.2.200.0050.00915.00
7.2.190.0050.00814.93
7.2.180.0060.00514.92
7.2.170.0050.00714.86
7.2.160.0070.00414.93
7.2.150.0030.00816.99
7.2.140.0070.00516.89
7.2.130.0030.01016.95
7.2.120.0100.00716.92
7.2.110.0040.01116.90
7.2.100.0040.00916.82
7.2.90.0070.00816.88
7.2.80.0050.00716.81
7.2.70.0000.01116.83
7.2.60.0070.00616.86
7.2.50.0030.01216.86
7.2.40.0050.01216.96
7.2.30.0050.00917.02
7.2.20.0070.00816.93
7.2.10.0030.00916.94
7.2.00.0080.00817.68
7.1.330.0040.00915.73
7.1.320.0050.00515.88
7.1.310.0070.00715.76
7.1.300.0060.00715.74
7.1.290.0030.00915.62
7.1.280.0080.00515.77
7.1.270.0040.00815.66
7.1.260.0060.00515.69
7.1.250.0060.00815.87
7.1.240.0110.00415.86
7.1.230.0060.00615.86
7.1.220.0020.00915.81
7.1.210.0050.01015.84
7.1.200.0060.00815.74
7.1.190.0040.00915.68
7.1.180.0020.00815.92
7.1.170.0020.00815.53
7.1.160.0070.00515.71
7.1.150.0060.00715.76
7.1.140.0050.01015.81
7.1.130.0070.00615.55
7.1.120.0020.01215.77
7.1.110.0020.00815.78
7.1.100.0060.00816.39
7.1.90.0080.00415.78
7.1.80.0020.00915.62
7.1.70.0070.00516.32
7.1.60.0050.01116.87
7.1.50.0030.00916.13
7.1.40.0080.00815.53
7.1.30.0040.01215.71
7.1.20.0050.00915.77
7.1.10.0080.00515.71
7.1.00.0040.02917.98
7.0.330.0050.00715.41
7.0.320.0100.00315.41
7.0.310.0000.01015.44
7.0.300.0040.00615.27
7.0.290.0070.00715.19
7.0.280.0060.00815.34
7.0.270.0080.00415.50
7.0.260.0020.00815.35
7.0.250.0040.00815.51
7.0.240.0020.01315.46
7.0.230.0040.01115.49
7.0.220.0000.00815.32
7.0.210.0030.00715.31
7.0.200.0030.00715.84
7.0.190.0060.00615.44
7.0.180.0020.00815.34
7.0.170.0020.01215.31
7.0.160.0090.00515.60
7.0.150.0030.00915.31
7.0.140.0040.01417.59
7.0.130.0070.00615.28
7.0.120.0050.00815.45
7.0.110.0000.01215.26
7.0.100.0020.01215.27
7.0.90.0050.01015.36
7.0.80.0050.00415.54
7.0.70.0010.01215.26
7.0.60.0030.03416.78
7.0.50.0080.02816.23
7.0.40.0040.02914.93
7.0.30.0110.01414.95
7.0.20.0040.02814.95
7.0.10.0080.02014.92
7.0.00.0030.02014.93
5.6.400.0060.00514.13
5.6.390.0030.00914.19
5.6.380.0050.00814.35
5.6.370.0080.00614.49
5.6.360.0050.00614.30
5.6.350.0080.00714.31
5.6.340.0000.01514.40
5.6.330.0050.00914.31
5.6.320.0100.00514.29
5.6.310.0100.00514.37
5.6.300.0040.00714.29
5.6.290.0050.00814.25
5.6.280.0080.02516.47
5.6.270.0030.00914.40
5.6.260.0030.00714.33
5.6.250.0050.00814.40
5.6.240.0070.00514.30
5.6.230.0070.00414.37
5.6.220.0070.00514.31
5.6.210.0050.03416.44
5.6.200.0040.01815.61
5.6.190.0070.03015.70
5.6.180.0070.01815.46
5.6.170.0030.03515.60
5.6.160.0060.03315.64
5.6.150.0080.02915.62
5.6.140.0090.02715.57
5.6.130.0090.02715.61
5.6.120.0060.02915.54
5.6.110.0080.01915.67
5.6.100.0060.02215.66
5.6.90.0050.03415.56
5.6.80.0050.01915.34
5.6.70.0080.02115.40
5.6.60.0050.03015.47
5.6.50.0040.02615.35
5.6.40.0090.02715.40
5.6.30.0030.02315.38
5.6.20.0060.01615.29
5.6.10.0080.01615.28
5.6.00.0030.01915.24
5.5.380.0030.01114.21
5.5.370.0030.00814.25
5.5.360.0060.00614.29
5.5.350.0060.02716.31
5.5.340.0050.02515.52
5.5.330.0060.02415.54
5.5.320.0050.02915.54
5.5.310.0080.03015.55
5.5.300.0060.02815.47
5.5.290.0050.03315.54
5.5.280.0030.03015.44
5.5.270.0120.02715.44
5.5.260.0010.03015.54
5.5.250.0020.03615.48
5.5.240.0070.01715.27
5.5.230.0040.03215.12
5.5.220.0060.03515.12
5.5.210.0040.02815.18
5.5.200.0050.03215.21
5.5.190.0030.02215.28
5.5.180.0030.01715.10
5.5.170.0030.00714.04
5.5.160.0020.02015.20
5.5.150.0060.01615.29
5.5.140.0040.01915.16
5.5.130.0060.01715.21
5.5.120.0040.01815.15
5.5.110.0030.01815.32
5.5.100.0040.01915.13
5.5.90.0020.02015.12
5.5.80.0080.01415.18
5.5.70.0040.02015.11
5.5.60.0040.01615.21
5.5.50.0070.01415.11
5.5.40.0080.01415.16
5.5.30.0050.01815.26
5.5.20.0080.01415.14
5.5.10.0080.01515.15
5.5.00.0040.01815.05
5.4.450.0050.02514.81
5.4.440.0020.01814.81
5.4.430.0030.02114.78
5.4.420.0080.02614.77
5.4.410.0050.01814.82
5.4.400.0050.01714.68
5.4.390.0020.02114.67
5.4.380.0060.02114.69
5.4.370.0030.01814.70
5.4.360.0000.02014.66
5.4.350.0070.02614.69
5.4.340.0020.02114.66
5.4.330.0030.00612.50
5.4.320.0060.01514.68
5.4.310.0030.01714.65
5.4.300.0070.01414.67
5.4.290.0040.01714.63
5.4.280.0030.01614.69
5.4.270.0020.01814.67
5.4.260.0050.01614.67
5.4.250.0050.01514.68
5.4.240.0110.01114.67
5.4.230.0040.01814.71
5.4.220.0030.01714.67
5.4.210.0040.01514.71
5.4.200.0010.01614.68
5.4.190.0050.01614.68
5.4.180.0030.01414.70
5.4.170.0050.01414.68
5.4.160.0060.01314.67
5.4.150.0040.01614.69
5.4.140.0040.01413.82
5.4.130.0020.01713.81
5.4.120.0020.01713.79
5.4.110.0040.01913.80
5.4.100.0020.01813.80
5.4.90.0040.02013.86
5.4.80.0050.02613.84
5.4.70.0040.02313.76
5.4.60.0070.02613.74
5.4.50.0050.03013.77
5.4.40.0060.02413.76
5.4.30.0090.02613.79
5.4.20.0040.02913.79
5.4.10.0050.02613.80
5.4.00.0030.02913.58
5.3.290.0050.01513.29
5.3.280.0040.01713.20
5.3.270.0020.01713.19
5.3.260.0010.02013.23
5.3.250.0040.01513.19
5.3.240.0030.01613.20
5.3.230.0060.01413.23
5.3.220.0020.01713.26
5.3.210.0060.01313.26
5.3.200.0040.01713.26
5.3.190.0040.03213.18
5.3.180.0040.01713.19
5.3.170.0090.01313.19
5.3.160.0040.03013.20
5.3.150.0050.01913.18
5.3.140.0040.01913.19
5.3.130.0050.03213.20
5.3.120.0070.02013.18
5.3.110.0040.02913.20
5.3.100.0070.01612.99
5.3.90.0050.02812.99
5.3.80.0060.02312.95
5.3.70.0030.03013.03
5.3.60.0040.02712.99
5.3.50.0030.02612.99
5.3.40.0020.02612.98
5.3.30.0020.02912.98
5.3.20.0080.02612.97
5.3.10.0030.01912.83
5.3.00.0010.03112.87
5.2.170.0070.06311.18
5.2.160.0000.06711.18
5.2.150.0070.03711.18
5.2.140.0070.06011.18
5.2.130.0100.05711.09
5.2.120.0030.04311.00
5.2.110.0100.06011.20
5.2.100.0030.04011.15
5.2.90.0130.03711.10
5.2.80.0030.04011.14
5.2.70.0070.04311.09
5.2.60.0030.05011.04
5.2.50.0070.06011.05
5.2.40.0100.05011.02
5.2.30.0030.06711.02
5.2.20.0070.04311.03
5.2.10.0030.06710.81
5.2.00.0000.05310.72
5.1.60.0130.0479.99
5.1.50.0030.05710.04
5.1.40.0070.0409.95
5.1.30.0130.04710.55
5.1.20.0030.05710.36
5.1.10.0000.06310.02
5.1.00.0000.0409.99
5.0.50.0070.0438.52
5.0.40.0000.0408.47
5.0.30.0030.0638.21
5.0.20.0000.0478.25
5.0.10.0070.0308.26
5.0.00.0000.0738.18
4.4.90.0030.0337.88
4.4.80.0070.0277.88
4.4.70.0000.0277.88
4.4.60.0030.0337.88
4.4.50.0070.0307.88
4.4.40.0000.0477.88
4.4.30.0000.0407.88
4.4.20.0070.0277.88
4.4.10.0030.0177.88
4.4.00.0100.0207.88
4.3.110.0070.0337.88
4.3.100.0070.0277.88
4.3.90.0000.0307.88
4.3.80.0000.0577.88
4.3.70.0000.0307.88
4.3.60.0000.0377.88
4.3.50.0000.0407.88
4.3.40.0070.0377.88
4.3.30.0000.0337.88
4.3.20.0000.0377.88
4.3.10.0000.0337.88
4.3.00.0100.0277.88

preferences:
47.07 ms | 401 KiB | 5 Q