3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $test = 'sd'; } $foo = new Foo; var_dump( json_decode(json_encode($foo), true));

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.0090.00916.50
8.3.50.0000.01416.16
8.3.40.0110.00718.55
8.3.30.0090.00618.39
8.3.20.0080.00020.09
8.3.10.0040.00421.83
8.3.00.0050.00320.95
8.2.180.0090.00618.28
8.2.170.0060.01522.96
8.2.160.0070.00722.31
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00322.26
8.2.120.0000.00726.35
8.2.110.0050.00520.99
8.2.100.0110.00020.35
8.2.90.0020.00519.22
8.2.80.0040.00417.97
8.2.70.0050.00317.80
8.2.60.0000.00718.09
8.2.50.0060.00318.10
8.2.40.0030.00622.21
8.2.30.0000.00820.85
8.2.20.0070.00017.99
8.2.10.0000.00817.90
8.2.00.0000.00718.06
8.1.280.0110.00725.92
8.1.270.0040.00423.91
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0060.00619.02
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0090.00317.25
8.1.190.0000.00917.13
8.1.180.0040.00418.10
8.1.170.0080.00018.54
8.1.160.0050.00218.89
8.1.150.0000.00720.65
8.1.140.0030.00619.57
8.1.130.0030.00318.81
8.1.120.0020.00517.28
8.1.110.0000.00817.40
8.1.100.0000.00917.38
8.1.90.0000.00717.27
8.1.80.0040.00417.37
8.1.70.0040.00417.39
8.1.60.0040.00417.50
8.1.50.0040.00417.45
8.1.40.0110.00017.46
8.1.30.0030.00617.63
8.1.20.0040.00417.54
8.1.10.0030.00517.38
8.1.00.0000.00817.37
8.0.300.0060.00319.65
8.0.290.0000.00816.63
8.0.280.0070.00018.38
8.0.270.0030.00317.21
8.0.260.0030.00316.66
8.0.250.0040.00416.87
8.0.240.0000.00916.86
8.0.230.0040.00416.91
8.0.220.0000.00716.86
8.0.210.0070.00016.86
8.0.200.0000.00716.87
8.0.190.0060.00316.83
8.0.180.0040.00416.78
8.0.170.0040.00416.85
8.0.160.0040.00416.88
8.0.150.0030.00316.79
8.0.140.0080.00016.78
8.0.130.0000.00513.35
8.0.120.0060.00316.76
8.0.110.0000.00716.74
8.0.100.0000.00816.72
8.0.90.0050.00216.81
8.0.80.0070.01416.83
8.0.70.0040.00416.68
8.0.60.0000.00716.86
8.0.50.0070.00016.70
8.0.30.0100.01116.88
8.0.20.0180.00617.40
8.0.10.0000.00716.83
8.0.00.0120.00616.56
7.4.330.0000.00515.55
7.4.320.0000.00616.54
7.4.300.0000.00716.53
7.4.290.0020.00516.48
7.4.280.0040.00416.43
7.4.270.0070.00016.33
7.4.260.0030.00313.31
7.4.250.0000.00716.38
7.4.240.0050.00216.33
7.4.230.0040.00416.60
7.4.220.0040.01416.45
7.4.210.0140.00116.54
7.4.200.0030.00316.64
7.4.160.0110.00916.42
7.4.150.0130.00717.40
7.4.140.0120.00717.86
7.4.130.0110.01216.46
7.4.120.0100.00916.35
7.4.110.0090.00916.46
7.4.100.0200.00316.28
7.4.90.0100.00716.35
7.4.80.0150.00719.39
7.4.70.0080.01216.42
7.4.60.0080.00816.54
7.4.50.0040.01116.32
7.4.40.0030.01416.53
7.4.30.0040.01216.46
7.4.00.0080.00514.64
7.3.330.0000.00513.03
7.3.320.0000.00513.14
7.3.310.0070.00016.14
7.3.300.0000.00716.18
7.3.290.0000.00716.06
7.3.280.0080.01016.13
7.3.270.0100.00717.40
7.3.260.0130.01216.37
7.3.250.0160.00416.29
7.3.240.0110.00616.19
7.3.230.0090.00616.20
7.3.210.0170.00016.10
7.3.200.0090.00616.18
7.3.190.0100.00716.25
7.3.180.0080.00816.16
7.3.170.0070.01016.11
7.3.160.0150.00616.35
7.2.330.0060.01216.37
7.2.320.0090.00916.50
7.2.310.0130.00916.32
7.2.300.0170.00016.55
7.2.290.0100.00716.39
7.2.60.0080.00316.73
7.1.200.0000.01015.77
7.1.70.0070.00317.00
7.1.60.0600.01332.98
7.1.50.0670.00732.71
7.1.40.0870.01032.47
7.1.30.0730.00732.61
7.1.20.0630.00732.76
7.1.10.0570.00714.88
7.1.00.0500.01014.68
7.0.200.0530.00714.82
7.0.190.0470.01014.77
7.0.180.0430.01314.49
7.0.170.0600.01314.26
7.0.160.0500.01014.30
7.0.150.0630.00714.27
7.0.140.0600.00714.46
7.0.130.0500.01014.57
7.0.120.0500.01714.61
7.0.110.0470.01014.55
7.0.100.0430.01014.30
7.0.90.0470.01014.16
7.0.80.0470.01014.49
7.0.70.0530.01314.29
7.0.60.0470.01014.34
7.0.50.0730.00714.42
7.0.40.0500.01014.64
7.0.30.0500.00714.36
7.0.20.0700.00314.71
7.0.10.0570.01714.49
7.0.00.0470.00714.45

preferences:
38.54 ms | 400 KiB | 5 Q