3v4l.org

run code in 300+ PHP versions simultaneously
<?php $schema = <<<'HERE' { "properties": { "foo": {"$ref": "#"} }, "additionalProperties": false } HERE; $schema = json_decode($schema); // unset the ref unset($schema->properties->foo); // replace it with a closure that returns the schema when accessed. $schema->properties->foo = function () use ($schema) { return $schema; }; // If you find a closure, it's a lazy proxy. Execute it to get the value. $ref = $schema->properties->foo; $referencedValue = $ref(); // You would stop recursing if 1.) you run out of nested data or 2.) you reach the max depth. var_dump($referencedValue->properties);

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.0140.00718.43
8.3.50.0090.01022.99
8.3.40.0050.01018.96
8.3.30.0120.00318.88
8.3.20.0040.00420.29
8.3.10.0060.00320.61
8.3.00.0080.00020.69
8.2.180.0150.00316.88
8.2.170.0090.00622.96
8.2.160.0060.00922.13
8.2.150.0060.00324.18
8.2.140.0110.00024.66
8.2.130.0080.00026.16
8.2.120.0050.00319.54
8.2.110.0100.00021.24
8.2.100.0090.00319.45
8.2.90.0030.00617.63
8.2.80.0040.00418.61
8.2.70.0060.00317.50
8.2.60.0040.00417.50
8.2.50.0060.00317.55
8.2.40.0090.00019.95
8.2.30.0040.00418.13
8.2.20.0040.00417.58
8.2.10.0000.00718.08
8.2.00.0040.00418.13
8.1.280.0090.00925.92
8.1.270.0040.00423.83
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00722.66
8.1.230.0100.00320.96
8.1.220.0050.00318.64
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0040.00418.91
8.1.150.0040.00418.84
8.1.140.0080.00019.54
8.1.130.0040.00417.52
8.1.120.0080.00017.54
8.1.110.0000.00717.48
8.1.100.0040.00417.38
8.1.90.0040.00417.52
8.1.80.0030.00517.48
8.1.70.0070.00017.48
8.1.60.0040.00417.59
8.1.50.0080.00017.61
8.1.40.0080.00017.60
8.1.30.0000.00817.58
8.1.20.0060.00317.54
8.1.10.0040.00417.60
8.1.00.0060.00317.52
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00718.48
8.0.270.0030.00317.31
8.0.260.0000.00916.95
8.0.250.0000.00716.94
8.0.240.0080.00017.07
8.0.230.0050.00217.03
8.0.220.0040.00416.98
8.0.210.0030.00316.85
8.0.200.0030.00316.91
8.0.190.0030.00517.08
8.0.180.0000.00817.00
8.0.170.0040.00417.03
8.0.160.0050.00316.92
8.0.150.0000.00816.86
8.0.140.0030.00516.98
8.0.130.0050.00013.41
8.0.120.0080.00016.84
8.0.110.0050.00316.94
8.0.100.0030.00516.82
8.0.90.0030.00516.98
8.0.80.0070.01016.91
8.0.70.0050.00216.99
8.0.60.0070.00016.77
8.0.50.0040.00416.95
8.0.30.0070.01117.21
8.0.20.0070.01217.40
8.0.10.0070.00016.89
8.0.00.0090.01016.97
7.4.330.0000.00516.66
7.4.320.0060.00016.44
7.4.300.0040.00416.60
7.4.290.0040.00416.37
7.4.280.0000.00816.63
7.4.270.0080.00016.45
7.4.260.0000.00816.50
7.4.250.0040.00416.47
7.4.240.0070.00016.52
7.4.230.0040.00416.62
7.4.220.0130.01216.48
7.4.210.0090.00616.63
7.4.200.0080.00016.44
7.4.160.0100.00616.36
7.4.150.0150.00317.40
7.4.140.0100.01117.86
7.4.130.0030.01416.48
7.4.120.0100.00816.49
7.4.110.0170.00016.61
7.4.100.0170.00616.57
7.4.90.0090.00816.48
7.4.80.0090.00919.39
7.4.70.0080.00816.51
7.4.60.0130.00316.50
7.4.50.0090.00616.46
7.4.40.0070.01416.47
7.4.30.0060.01216.57
7.4.00.0120.00414.96
7.3.330.0000.00513.36
7.3.320.0030.00313.39
7.3.310.0030.00616.36
7.3.300.0040.00416.23
7.3.290.0000.00716.33
7.3.280.0070.00816.29
7.3.270.0070.01517.40
7.3.260.0120.00916.48
7.3.250.0050.01616.40
7.3.240.0080.01116.61
7.3.230.0090.01416.50
7.3.210.0080.00816.36
7.3.200.0080.00816.54
7.3.190.0080.00816.55
7.3.180.0120.00416.38
7.3.170.0180.00016.36
7.3.160.0030.01416.52
7.3.120.0060.01214.79
7.3.110.0030.01314.84
7.3.100.0030.01014.89
7.3.90.0090.00014.94
7.3.80.0090.00614.61
7.3.70.0030.01414.96
7.3.60.0120.00314.70
7.3.50.0090.00914.81
7.3.40.0080.00514.82
7.3.30.0060.01014.64
7.3.20.0030.01116.70
7.3.10.0070.00816.62
7.3.00.0100.00516.47
7.2.330.0090.00916.42
7.2.320.0140.00316.75
7.2.310.0030.01316.76
7.2.300.0130.00516.41
7.2.290.0070.01116.80
7.2.250.0000.01415.33
7.2.240.0120.00915.31
7.2.230.0030.01415.24
7.2.220.0070.00314.97
7.2.210.0040.00715.34
7.2.200.0030.01414.77
7.2.190.0060.00915.04
7.2.180.0060.00915.11
7.2.170.0070.00314.85
7.2.160.0160.00614.89
7.2.150.0100.00316.77
7.2.140.0100.01317.00
7.2.130.0110.00717.20
7.2.120.0120.01116.99
7.2.110.0100.01016.96
7.2.100.0110.01116.96
7.2.90.0090.00916.79
7.2.80.0000.01317.12
7.2.70.0160.00616.96
7.2.60.0110.00516.72
7.2.50.0090.00616.85
7.2.40.0120.00016.81
7.2.30.0200.00316.93
7.2.20.0140.00716.83
7.2.10.0120.01016.73
7.2.00.0070.00718.02
7.1.330.0090.00315.83
7.1.320.0110.00015.77
7.1.310.0000.01415.80
7.1.300.0100.00315.60
7.1.290.0030.00915.76
7.1.280.0070.00615.78
7.1.270.0050.00915.69
7.1.260.0080.00715.58
7.1.250.0030.00715.98
7.1.240.0130.01415.78
7.1.230.0270.00615.87
7.1.220.0090.01215.66
7.1.210.0260.00015.69
7.1.200.0080.00815.68
7.1.190.0130.00915.78
7.1.180.0150.01215.84
7.1.170.0150.00415.75
7.1.160.0150.01515.56
7.1.150.0000.01915.56
7.1.140.0100.01715.69
7.1.130.0100.00415.69
7.1.120.0160.00815.77
7.1.110.0110.01215.74
7.1.100.0100.00816.78
7.1.90.0190.00015.87
7.1.80.0140.01115.79
7.1.70.0030.01316.44
7.1.60.0140.00717.65
7.1.50.0070.01316.41
7.1.40.0030.01215.84
7.1.30.0210.00615.73
7.1.20.0220.00315.68
7.1.10.0230.01415.91
7.1.00.0090.04218.04
7.0.330.0060.01015.16
7.0.320.0150.00315.40
7.0.310.0180.00915.29
7.0.300.0220.00815.30
7.0.290.0130.00515.16
7.0.280.0050.01715.19
7.0.270.0130.00015.36
7.0.260.0110.00915.43
7.0.250.0080.00815.38
7.0.240.0200.00715.44
7.0.230.0140.00715.32
7.0.220.0090.00915.14
7.0.210.0140.01115.42
7.0.200.0080.00815.98
7.0.190.0170.00015.57
7.0.180.0070.01315.20
7.0.170.0120.01315.61
7.0.160.0090.00615.41
7.0.150.0120.00615.54
7.0.140.0160.00515.39
7.0.130.0190.00815.46
7.0.120.0100.00715.53
7.0.110.0110.01115.54
7.0.100.0220.00015.52
7.0.90.0160.00615.21
7.0.80.0140.00415.45
7.0.70.0210.00615.22
7.0.60.0090.01718.36
7.0.50.0080.02316.69
7.0.40.0210.04217.81
7.0.30.0170.04617.82
7.0.20.0210.02016.93
7.0.10.0140.04516.94
7.0.00.0060.02916.98
5.6.400.0170.00914.48
5.6.390.0220.00914.57
5.6.380.0060.01214.38
5.6.370.0160.00414.24
5.6.360.0150.01314.19
5.6.350.0230.00314.57
5.6.340.0060.01214.67
5.6.330.0100.01014.13
5.6.320.0180.00014.41
5.6.310.0110.00914.66
5.6.300.0130.00514.39
5.6.290.0170.00914.46
5.6.280.0090.04217.56
5.6.270.0180.00614.21
5.6.260.0170.00314.30
5.6.250.0180.01314.52
5.6.240.0200.01014.53
5.6.230.0140.01314.39
5.6.220.0130.00814.22
5.6.210.0150.04017.50
5.6.200.0160.04216.20
5.6.190.0180.04617.60
5.6.180.0260.03517.49
5.6.170.0220.04517.32
5.6.160.0170.04317.38
5.6.150.0090.03116.10
5.6.140.0160.02616.18
5.6.130.0080.03216.36
5.6.120.0080.04617.72
5.6.110.0190.03317.69
5.6.100.0110.03317.58
5.6.90.0070.04017.60
5.6.80.0130.04117.40
5.6.70.0090.01314.01
5.6.60.0130.00914.30
5.6.50.0120.00714.42
5.6.40.0180.00314.17
5.6.30.0230.00514.34
5.6.20.0100.01014.29
5.6.10.0120.00614.35
5.6.00.0090.00914.27
5.5.380.0150.00414.17
5.5.370.0160.00914.03
5.5.360.0160.01214.34
5.5.350.2210.02517.33
5.5.340.0110.03116.10
5.5.330.0140.04217.28
5.5.320.0180.02617.51
5.5.310.0210.04217.25
5.5.300.0090.02316.07
5.5.290.0110.04016.22
5.5.280.0090.02717.39
5.5.270.0170.03217.47
5.5.260.0100.03217.71
5.5.250.0080.04617.58
5.5.240.0100.04217.10
5.5.230.0170.00914.29
5.5.220.0180.00513.98
5.5.210.0150.00314.09
5.5.200.0150.00714.08
5.5.190.0170.00814.16
5.5.180.0110.00714.09
5.5.170.0150.00513.95
5.5.160.0140.00814.35
5.5.150.0090.00914.45
5.5.140.0130.00813.86
5.5.130.0050.02014.37
5.5.120.0190.01014.20
5.5.110.0150.00414.32
5.5.100.0200.00714.23
5.5.90.0160.01114.00
5.5.80.0100.01014.00
5.5.70.0110.01514.09
5.5.60.0090.01314.12
5.5.50.0250.00314.20
5.5.40.0150.01114.28
5.5.30.0070.01314.04
5.5.20.0180.00014.16
5.5.10.0140.00414.39
5.5.00.0090.01814.08
5.4.450.0350.03216.40
5.4.440.0120.03216.24
5.4.430.0260.03116.37
5.4.420.0160.02616.32
5.4.410.0260.03816.28
5.4.400.0470.02716.16
5.4.390.0360.03416.25
5.4.380.0380.03216.16
5.4.370.0360.02916.24
5.4.360.0130.02716.19
5.4.350.0340.02716.08
5.4.340.0140.02816.25
5.4.330.0070.00713.21
5.4.320.0340.03116.21
5.4.310.0350.02716.18
5.4.300.0340.02916.23
5.4.290.0400.02416.18
5.4.280.0370.03316.18
5.4.270.0300.03316.23
5.4.260.0360.02816.21
5.4.250.0310.03116.12
5.4.240.0330.02716.22
5.4.230.0390.02316.22
5.4.220.0430.03216.11
5.4.210.0350.03316.17
5.4.200.0360.04016.22
5.4.190.0200.03216.18
5.4.180.0070.03316.20
5.4.170.0130.03116.07
5.4.160.0170.02516.20
5.4.150.0080.03416.12
5.4.140.0140.02814.86
5.4.130.0170.02914.80
5.4.120.0150.02714.81
5.4.110.0060.00613.21
5.4.100.0080.00613.21
5.4.90.0120.01213.21
5.4.80.0120.00813.21
5.4.70.0090.00513.21
5.4.60.0170.00013.21
5.4.50.0150.00613.21
5.4.40.0120.00613.21
5.4.30.0120.00513.21
5.4.20.0090.00413.21
5.4.10.0120.00813.21
5.4.00.0140.00313.21
5.3.290.0340.04113.94
5.3.280.0250.03013.91
5.3.270.0110.03313.91
5.3.260.0150.02613.92
5.3.250.0130.03013.92
5.3.240.0140.02913.93
5.3.230.0150.02713.98
5.3.220.0150.02313.88
5.3.210.0060.00613.21
5.3.200.0000.01313.21
5.3.190.0070.00713.21
5.3.180.0140.00613.21
5.3.170.0130.00013.21
5.3.160.0150.00713.21
5.3.150.0090.00413.21
5.3.140.0160.00013.21
5.3.130.0110.00613.21
5.3.120.0110.00813.21
5.3.110.0070.01213.21
5.3.100.0090.00613.21
5.3.90.0120.00613.21
5.3.80.0060.00613.21
5.3.70.0180.00013.21
5.3.60.0110.01113.21
5.3.50.0140.00013.21
5.3.40.0220.00013.21
5.3.30.0170.00013.21
5.3.20.0100.01113.21
5.3.10.0120.00013.21
5.3.00.0120.00513.21
5.2.170.0190.00013.21
5.2.160.0140.00713.21
5.2.150.0090.00913.21
5.2.140.0110.00313.21
5.2.130.0140.00513.21
5.2.120.0060.00613.21
5.2.110.0020.00813.21
5.2.100.0050.00513.21
5.2.90.0080.00013.21
5.2.80.0070.00413.21
5.2.70.0030.01013.21
5.2.60.0060.00613.21
5.2.50.0050.00613.21
5.2.40.0060.00613.21
5.2.30.0020.01113.21
5.2.20.0110.00013.21
5.2.10.0050.00913.21
5.2.00.0050.00513.21
5.1.60.0090.00013.21
5.1.50.0070.00213.21
5.1.40.0090.00013.21
5.1.30.0050.00513.21
5.1.20.0060.00313.21
5.1.10.0030.00613.21
5.1.00.0000.01513.21
5.0.50.0110.00013.21
5.0.40.0050.00213.21
5.0.30.0030.00613.21
5.0.20.0050.00313.21
5.0.10.0030.00313.21
5.0.00.0060.00613.21
4.4.90.0050.00913.21
4.4.80.0030.00713.21
4.4.70.0030.00313.21
4.4.60.0030.00313.21
4.4.50.0070.00413.21
4.4.40.0000.01013.21
4.4.30.0060.00013.21
4.4.20.0020.00513.21
4.4.10.0070.00213.21
4.4.00.0070.00313.21
4.3.110.0060.00013.21
4.3.100.0060.00313.21
4.3.90.0070.00013.21
4.3.80.0080.00013.21
4.3.70.0030.00913.21
4.3.60.0110.00013.21
4.3.50.0110.00313.21
4.3.40.0000.00813.21
4.3.30.0060.00013.21
4.3.20.0060.00013.21
4.3.10.0050.00013.21
4.3.00.0030.00313.21

preferences:
101.26 ms | 401 KiB | 5 Q