3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); class A { public static function __set_state(): string { return 'a string'; } } $a = new A; eval('$b = ' . var_export($a, true) . ';'); var_dump($b); ?>

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.0100.00718.09
8.3.50.0090.00918.28
8.3.40.0160.00318.50
8.3.30.0100.00319.04
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.180.0140.00325.92
8.2.170.0040.01622.96
8.2.160.0130.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00326.16
8.2.120.0090.00026.16
8.2.110.0090.00020.44
8.2.100.0060.00617.78
8.2.90.0000.00817.50
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0030.00517.68
8.2.50.0000.00818.07
8.2.40.0030.00518.04
8.2.30.0040.00417.97
8.2.20.0000.00717.96
8.2.10.0030.00319.18
8.2.00.0050.00318.98
8.1.280.0070.01025.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.79
8.1.230.0060.00619.16
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0140.00017.11
8.1.190.0000.00817.10
8.1.180.0030.00518.10
8.1.170.0060.00318.59
8.1.160.0040.00418.76
8.1.150.0040.00318.74
8.1.140.0070.00018.66
8.1.130.0000.00720.17
8.1.120.0000.00817.35
8.1.110.0000.00717.32
8.1.100.0040.00417.34
8.1.90.0000.00717.34
8.1.80.0080.00017.30
8.1.70.0080.00017.16
8.1.60.0000.00717.38
8.1.50.0030.00517.27
8.1.40.0000.00817.39
8.1.30.0040.00417.41
8.1.20.0000.00817.47
8.1.10.0040.00417.25
8.1.00.0090.00417.36
8.0.300.0000.00719.77
8.0.290.0070.00016.63
8.0.280.0030.00518.30
8.0.270.0070.00018.00
8.0.260.0000.00618.39
8.0.250.0060.00016.87
8.0.240.0080.00016.90
8.0.230.0040.00416.79
8.0.220.0040.00416.71
8.0.210.0040.00416.80
8.0.200.0000.00816.91
8.0.190.0050.00216.82
8.0.180.0000.00816.91
8.0.170.0000.00816.82
8.0.160.0040.00416.83
8.0.150.0000.00816.75
8.0.140.0030.00316.75
8.0.130.0050.00013.20
8.0.120.0040.00416.70
8.0.110.0080.00016.85
8.0.100.0030.00416.64
8.0.90.0040.00416.63
8.0.80.0090.00716.84
8.0.70.0000.00716.77
8.0.60.0000.00716.60
8.0.50.0030.00516.68
8.0.30.0040.01216.82
8.0.20.0110.00817.21
8.0.10.0000.00717.00
8.0.00.0070.01316.64
7.4.330.0020.00215.55
7.4.320.0050.00216.36
7.4.300.0030.00316.48
7.4.290.0050.00216.50
7.4.280.0040.00416.59
7.4.270.0030.00316.57
7.4.260.0060.00013.21
7.4.250.0030.00616.45
7.4.240.0030.00416.59
7.4.230.0000.00716.29
7.4.220.0020.00516.48
7.4.210.0050.01216.55
7.4.200.0030.00416.68
7.4.130.0090.01116.57
7.4.120.0030.01616.48
7.4.110.0090.00916.52
7.4.100.0100.00616.39
7.4.90.0130.00316.46
7.4.80.0170.00819.39
7.4.70.0070.01416.52
7.4.60.0120.00616.54
7.4.50.0070.01016.41
7.4.40.0060.01016.42
7.4.30.0100.01316.56
7.4.20.0070.01016.27
7.4.10.0100.00716.38
7.4.00.0110.00616.47
7.3.330.0000.00716.10
7.3.320.0030.00313.36
7.3.310.0000.00716.33
7.3.300.0000.00716.26
7.3.290.0100.00716.30
7.3.260.0040.01216.54
7.3.240.0110.00616.32
7.3.230.0140.00316.48
7.3.210.0070.01016.20
7.3.200.0120.00416.32
7.3.190.0150.00316.30
7.3.180.0030.01416.38
7.3.170.0060.00916.12
7.3.160.0100.00616.09
7.3.150.0120.00916.36
7.3.140.0100.00716.41
7.3.130.0120.00616.27
7.3.120.0140.00316.21
7.3.110.0090.00715.90
7.3.100.0170.00016.40
7.3.90.0090.00616.29
7.3.80.0000.01816.33
7.3.70.0100.01016.42
7.3.60.0060.01316.18
7.3.50.0060.00916.13
7.3.40.0130.00316.28
7.3.30.0060.01016.26
7.3.20.0100.00616.30
7.3.10.0080.01616.25
7.3.00.0070.01016.26
7.2.330.0110.00716.59
7.2.320.0100.00616.71
7.2.310.0060.01216.42
7.2.300.0070.01016.69
7.2.290.0090.00816.43
7.2.280.0060.01216.68
7.2.270.0060.01216.54
7.2.260.0030.01416.50
7.2.250.0030.01316.38
7.2.240.0030.01416.43
7.2.230.0070.01016.48
7.2.220.0070.01116.61
7.2.210.0110.00716.66
7.2.200.0000.02016.45
7.2.190.0060.01316.48
7.2.180.0100.00716.38
7.2.170.0040.01216.53
7.2.160.0100.00716.53
7.2.150.0170.00616.61
7.2.140.0670.01016.49
7.2.130.0120.00616.57
7.2.120.0070.01116.46
7.2.110.0090.00916.63
7.2.100.0100.00716.63
7.2.90.0100.01016.51
7.2.80.0040.01416.55
7.2.70.0000.01716.59
7.2.60.0110.00716.70
7.2.50.0070.01116.61
7.2.40.0100.00616.70
7.2.30.0070.01016.55
7.2.20.0140.00316.36
7.2.10.0070.01116.45
7.2.00.0120.00616.58

preferences:
64.47 ms | 400 KiB | 5 Q