3v4l.org

run code in 300+ PHP versions simultaneously
<?php define("MAXSIZE", 100); //echo eval("MAXSIZE"); echo constant("MAXSIZE"); class T { public $a; public $b; } $obj = new T(); $cls = get_class($obj); $vars = get_class_vars($cls); //ๅ˜้‡ๅˆ—่กจ var_dump($vars); $str = '{"a":"pa","b":"pb"}'; $obj = json_decode($str,false); //$obj is stdclass $cls = get_class($obj); $vars = get_object_vars($obj); var_dump($vars); function ubb($matche) { if($matche[1]=='img' or $matche[1]=='IMG') return "<img src='".$matche[2]."'/>"; } $img = "img:[img]/sdfcs/sdfsdf/sdfsdf.jpg[/img],[url]http://www.oschina.net/[/url]"; $imghtml=preg_replace_callback("/\[(.*)\](.*)\[\/\g{1}\]/U",ubb,$img); echo $imghtml;

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.00618.56
8.3.50.0130.00921.27
8.3.40.0110.00718.64
8.3.30.0140.00020.12
8.3.20.0070.00020.20
8.3.10.0000.00722.14
8.3.00.0050.00322.51
8.2.180.0100.01016.50
8.2.170.0080.00822.96
8.2.160.0100.00322.26
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0000.00820.75
8.2.110.0090.00021.93
8.2.100.0090.00317.59
8.2.90.0080.00019.17
8.2.80.0050.00319.38
8.2.70.0050.00317.63
8.2.60.0000.00717.93
8.2.50.0000.00818.07
8.2.40.0050.00319.88
8.2.30.0000.00719.47
8.2.20.0080.00017.70
8.2.10.0050.00317.92
8.2.00.0040.00417.92
8.1.280.0030.01725.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00423.63
8.1.230.0070.00419.09
8.1.220.0050.00317.77
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.52
8.1.180.0080.00018.10
8.1.170.0000.00818.55
8.1.160.0000.00718.80
8.1.150.0040.00418.59
8.1.140.0000.00717.54
8.1.130.0030.00317.92
8.1.120.0000.00717.42
8.1.110.0000.00817.39
8.1.100.0000.00717.46
8.1.90.0000.00817.48
8.1.80.0000.00717.37
8.1.70.0000.00717.49
8.1.60.0050.00517.54
8.1.50.0040.00417.54
8.1.40.0040.00417.58
8.1.30.0040.00417.68
8.1.20.0030.00617.77
8.1.10.0040.00417.62
8.1.00.0040.00417.50
8.0.300.0040.00418.77
8.0.290.0070.00017.18
8.0.280.0030.00318.48
8.0.270.0040.00417.29
8.0.260.0000.00816.87
8.0.250.0000.00716.95
8.0.240.0040.00416.97
8.0.230.0070.00017.05
8.0.220.0080.00016.99
8.0.210.0040.00417.03
8.0.200.0040.00416.92
8.0.190.0040.00417.05
8.0.180.0000.00816.89
8.0.170.0050.00316.99
8.0.160.0040.00416.98
8.0.150.0000.00916.89
8.0.140.0000.00716.99
8.0.130.0000.00513.33
8.0.120.0000.00816.98
8.0.110.0070.00017.04
8.0.100.0020.00516.98
8.0.90.0070.00016.88
8.0.80.0160.00316.93
8.0.70.0070.00016.82
8.0.60.0000.00716.86
8.0.50.0080.00016.95
8.0.30.0080.01117.20
8.0.20.0100.00817.40
8.0.10.0040.00416.99
8.0.00.0080.01116.93
7.4.330.0060.00015.00
7.4.320.0030.00316.88
7.4.300.0060.00016.86
7.4.290.0030.00316.75
7.4.280.0000.00716.74
7.4.270.0030.00316.87
7.4.260.0000.00613.49
7.4.250.0070.00016.61
7.4.240.0040.00416.75
7.4.230.0000.00816.59
7.4.220.0060.01316.87
7.4.210.0080.01016.93
7.4.200.0030.00316.70
7.4.190.0030.00316.94
7.4.160.0160.00616.59
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0120.00416.77
7.4.120.0100.00816.79
7.4.110.0080.01016.73
7.4.100.0080.01116.71
7.4.90.0110.00916.75
7.4.80.0070.01419.39
7.4.70.0060.01716.88
7.4.60.0110.00716.80
7.4.50.0040.00416.61
7.4.40.0070.00722.77
7.4.30.0180.00616.76
7.4.00.0100.00615.27
7.3.330.0030.00313.43
7.3.320.0030.00313.50
7.3.310.0000.00716.45
7.3.300.0000.00716.44
7.3.290.0080.00616.51
7.3.280.0050.01216.56
7.3.270.0030.01417.40
7.3.260.0110.00616.64
7.3.250.0100.01116.76
7.3.240.0100.00616.56
7.3.230.0090.00916.71
7.3.210.0090.00916.60
7.3.200.0070.01319.39
7.3.190.0080.00816.62
7.3.180.0030.01316.64
7.3.170.0060.01016.70
7.3.160.0100.00716.77
7.3.120.0060.01115.04
7.3.110.0000.01815.21
7.3.100.0040.01214.75
7.3.90.0070.00714.71
7.3.80.0080.00814.93
7.3.70.0040.00715.15
7.3.60.0060.01214.85
7.3.50.0040.00815.12
7.3.40.0000.01314.84
7.3.30.0060.00614.91
7.3.20.0070.00716.96
7.3.10.0030.01016.83
7.3.00.0040.00816.82
7.2.330.0070.01016.99
7.2.320.0090.01516.87
7.2.310.0100.00716.84
7.2.300.0080.00817.03
7.2.290.0090.00916.77
7.2.250.0060.01315.14
7.2.240.0070.01015.51
7.2.230.0120.00415.18
7.2.220.0060.00615.26
7.2.210.0070.01515.38
7.2.200.0000.01415.43
7.2.190.0030.01214.93
7.2.180.0040.01115.29
7.2.170.0000.01215.13
7.2.60.0050.00917.20
7.2.00.0030.01019.76
7.1.330.0080.00816.14
7.1.320.0070.00316.00
7.1.310.0070.00716.02
7.1.300.0000.01515.91
7.1.290.0040.00815.98
7.1.280.0000.01415.88
7.1.270.0040.01116.04
7.1.260.0000.00916.07
7.1.200.0000.01315.83
7.1.100.0060.00318.22
7.1.70.0070.00017.31
7.1.60.0100.00719.32
7.1.50.0040.01416.98
7.1.00.0000.06722.33
7.0.200.0090.00616.91
7.0.140.0070.07022.08
7.0.100.0070.05020.02
7.0.90.0230.03319.90
7.0.80.0300.05019.97
7.0.70.0200.06019.96
7.0.60.0200.08320.11
7.0.50.0270.03320.40
7.0.40.0000.07019.95
7.0.30.0130.04720.08
7.0.20.0100.03720.14
7.0.10.0100.03720.07
7.0.00.0070.09719.99
5.6.280.0030.07321.00
5.6.250.0100.06320.60
5.6.240.0030.06720.60
5.6.230.0100.07320.75
5.6.220.0070.07320.59
5.6.210.0030.08720.66
5.6.200.0070.04721.05
5.6.190.0170.06321.04
5.6.180.0130.06021.12
5.6.170.0070.08321.14
5.6.160.0000.05721.17
5.6.150.0030.06721.09
5.6.140.0000.08320.96
5.6.130.0030.08021.06
5.6.120.0100.08321.02
5.6.110.0000.06721.10
5.6.100.0000.04721.07
5.6.90.0030.09021.05
5.6.80.0030.06320.44
5.6.70.0100.07320.55
5.6.60.0030.05720.45
5.6.50.0070.08320.56
5.6.40.0070.04020.50
5.6.30.0030.04720.37
5.6.20.0130.05320.39
5.6.10.0030.04320.43
5.6.00.0000.04320.29
5.5.380.0070.05320.45
5.5.370.0130.04720.40
5.5.360.0070.05320.45
5.5.350.0100.07020.34
5.5.340.0070.08720.88
5.5.330.0200.05320.84
5.5.320.0100.07720.76
5.5.310.0070.07720.90
5.5.300.0070.03720.83
5.5.290.0100.03720.65
5.5.280.0130.08320.78
5.5.270.0030.05020.87
5.5.260.0000.06020.86
5.5.250.0030.07020.61
5.5.240.0100.08020.28
5.5.230.0170.07020.20
5.5.220.0100.05720.30
5.5.210.0030.04020.30
5.5.200.0070.04320.12
5.5.190.0030.05020.25
5.5.180.0100.07320.26
5.5.160.0070.05020.29
5.5.150.0030.07020.18
5.5.140.0030.05020.18
5.5.130.0170.04020.09
5.5.120.0100.04320.22
5.5.110.0030.04720.23
5.5.100.0030.04720.05
5.5.90.0070.08020.02
5.5.80.0100.03720.13
5.5.70.0070.05020.15
5.5.60.0030.03720.12
5.5.50.0030.08020.07
5.5.40.0030.08720.06
5.5.30.0170.06320.10
5.5.20.0070.07320.00
5.5.10.0070.07019.96
5.5.00.0070.03720.07
5.4.450.0070.03719.55
5.4.440.0070.07319.54
5.4.430.0100.04319.24
5.4.420.0100.04319.44
5.4.410.0070.09319.02
5.4.400.0070.03719.12
5.4.390.0070.04719.03
5.4.380.0000.04319.04
5.4.370.0070.04018.96
5.4.360.0130.06719.02
5.4.350.0070.07019.12
5.4.340.0100.06719.12
5.4.320.0070.05719.12
5.4.310.0070.09719.20
5.4.300.0000.08019.04
5.4.290.0000.06319.12
5.4.280.0030.06719.03
5.4.270.0100.06019.21
5.4.260.0000.04319.01
5.4.250.0030.07019.14
5.4.240.0070.04018.84
5.4.230.0030.05319.04
5.4.220.0000.06318.83
5.4.210.0070.05719.14
5.4.200.0070.06018.94
5.4.190.0030.08718.93
5.4.180.0000.04019.21
5.4.170.0030.07719.18
5.4.160.0030.04718.83
5.4.150.0070.07319.18
5.4.140.0000.05016.50
5.4.130.0000.07316.53
5.4.120.0000.04716.46
5.4.110.0070.04316.52
5.4.100.0000.03716.43
5.4.90.0070.03716.55
5.4.80.0030.03316.50
5.4.70.0070.04016.38
5.4.60.0030.03716.43
5.4.50.0070.08016.47
5.4.40.0030.07716.37
5.4.30.0030.04016.48
5.4.20.0030.03316.44
5.4.10.0170.02316.46
5.4.00.0100.06315.85
5.3.290.0030.04014.59
5.3.280.0000.05714.72
5.3.270.0130.02714.66
5.3.260.0000.04014.63
5.3.250.0100.07014.59
5.3.240.0070.07714.61
5.3.230.0070.07014.73
5.3.220.0000.05014.52
5.3.210.0030.07714.53
5.3.200.0100.07014.68
5.3.190.0100.07014.52
5.3.180.0030.07014.58
5.3.170.0000.04014.63
5.3.160.0070.03314.67
5.3.150.0100.04314.55
5.3.140.0000.07314.49
5.3.130.0030.04014.53
5.3.120.0070.04014.52
5.3.110.0100.03314.64
5.3.100.0030.06014.11
5.3.90.0100.03714.00
5.3.80.0070.03714.04
5.3.70.0070.07314.04
5.3.60.0100.06714.05
5.3.50.0070.07013.88
5.3.40.0070.07314.05
5.3.30.0000.08013.98
5.3.20.0230.05713.76
5.3.10.0070.03313.67
5.3.00.0030.04313.70
5.2.170.0100.06711.24
5.2.160.0070.06311.26
5.2.150.0030.02711.21
5.2.140.0070.06011.27
5.2.130.0030.03711.18
5.2.120.0100.03711.23
5.2.110.0070.05711.11
5.2.100.0070.02711.18
5.2.90.0070.06011.17
5.2.80.0130.04710.99
5.2.70.0030.05311.18
5.2.60.0000.03010.94
5.2.50.0000.05711.08
5.2.40.0000.04710.98
5.2.30.0070.04710.90
5.2.20.0030.05710.96
5.2.10.0030.05710.95
5.2.00.0030.03010.72
5.1.60.0000.02710.05
5.1.50.0070.05010.05
5.1.40.0030.04710.05
5.1.30.0000.02710.38
5.1.20.0030.05010.36
5.1.10.0000.02310.05
5.1.00.0030.04710.13
5.0.50.0030.0479.81
5.0.40.0000.0479.81
5.0.30.0030.0579.81
5.0.20.0070.0279.81
5.0.10.0070.0179.81
5.0.00.0130.0379.81
4.4.90.0000.0379.81
4.4.80.0030.0139.81
4.4.70.0070.0309.81
4.4.60.0000.0339.81
4.4.50.0030.0139.81
4.4.40.0030.0539.81
4.4.30.0030.0209.81
4.4.20.0000.0239.81
4.4.10.0000.0209.81
4.4.00.0030.0539.81
4.3.110.0000.0309.81
4.3.100.0070.0309.81
4.3.90.0030.0179.81
4.3.80.0000.0539.81
4.3.70.0030.0309.81
4.3.60.0030.0179.81
4.3.50.0030.0239.81
4.3.40.0030.0239.81
4.3.30.0000.0409.81
4.3.20.0000.0309.81
4.3.10.0030.0309.81
4.3.00.0000.0239.81

preferences:
46.26 ms | 401 KiB | 5 Q